Finally I got my application for sending text messages (SMS), but now the problem is that I need messages to be displayed in the Inbox folder if the user opens the sms application.
Is there a way to add text messages to my inbox?
I am currently using the following code, can I change it in any way so that it appears in the inbox?
private void sendSMS(String phoneNumber, String message)
{
PendingIntent pi = PendingIntent.getActivity(ccc, 0, new Intent(), 0);
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, pi, null);
}
source
share