tags:

views:

113

answers:

1

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...

+1  A: 

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.

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.

CommonsWare
I've explored that option, but i would like to use the internal "SENT" Folder...So even though the user may use my application, his messages are still visible in the inbuilt Messaging App.
st0le
I can't to use the ACTION_SENDTO, it has to be using my GUI...there are additional features my app support...
st0le
@st0le: there is no single "inbuilt Messaging App" in Android. HTC Sense has one. MOTOBLUR has one. Other OEM layers (e.g., Sony Ericsson's Rachael) probably have theirs. Plus, there is the one that is part of the open source project and will appear on Google Experience devices (e.g., Nexus One).
CommonsWare
@Mark, went with my own SQlit Database... :)
st0le