I am developing one application,
based on that application i reseved messages.
My Code is as follows,
public class SmsReceiver extends BroadcastReceiver
{
@Override
public void onReceive(Context context, Intent intent)
{
//---get the SMS message passed in---
Bundle bundle = intent.getExtras();
SmsMessage[] msgs = null;
String str="";
if (bundle != null)
{
//---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get("pdus");
msgs = new SmsMessage[pdus.length];
for (int i=0; i<msgs.length; i++)
{
msgs[i] = SmsMessage.createFromPdu((byte[])pdus[i]);
str += "SMS from " + msgs[i].getOriginatingAddress();
str += " :";
str += msgs[i].getMessageBody().toString();
str += "\n";
}
receiving messages it works fine.
but i want to get information about sent messages .
Please help me regarding this.
there is no way to get broadcast intent of sent message,
what you can do is.
1) You can put one contentObserver on sent message uri ,
2) See if new message added in this uri(by saving previous id and new id)
3) in this way you can achieve it.
see below link it did the same what i am talking about.
Sent message observer