I’m working on an SMS Application for Android, which undoubtedly needs to send SMSes (go figure! 😉
Now, i know there are a plenty of sources on the net that describe using the SmsManager to send SMSes…But, apparently, when using that method, the SMSes aren’t stored in the “SENT” Folder…which is kind of a basic requirement for an SMS application.
How do i add an entry (of a message) into the “Outbox”, so that it gets sent (and stored in the SENT Folder Automatically)….
What would be the Values of the fields “_id,threadid,read,status,type,service_center” (Attributes of the message table)??
Any other alternatives are also welcome. 🙂
Thanks in Advance…
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, useACTION_SENDTOand have the message be sent by the user’s chosen SMS client, as is demonstrated by this sample project.