Skip to content Skip to sidebar Skip to footer

Sending Sms Programatically Not Stored In Outbox?

I'm making a project SMS programatically .. I use this code to send sms: SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null, message, sentPI, delivered

Solution 1:

The concept of a "SENT" folder is a feature of an application, not the operating system. If you wish to create your own SMS client application, create your own "SENT" folder as a feature of that application. You know what messages you are sending, so you can store them wherever you like (e.g., SQLite database).

If you want to send SMS messages and have them appear in the "SENT" folder of the user's chosen SMS client, don't use SmsManager. Instead, use ACTION_SENDTO and have the message be sent by the user's chosen SMS client, as is demonstrated by this sample project.

Original Source Here.

Post a Comment for "Sending Sms Programatically Not Stored In Outbox?"