Hi,
You can use the following code:
Intent sendIntent= new Intent(Intent.ACTION_VIEW);
sendIntent.putExtra("sms_body", "smsBody");
sendIntent.putExtra("address", "phoneNumber1;phoneNumber2;...");
sendIntent.setType("vnd.android-dir/mms-sms");
startActivity(sendIntent);
Regards,
Nishant Shah
On Jul 14, 10:52 am, Amit <[email protected]> wrote:
> Hi All,
>
> I have started the default SMS application and specified the SMS text
> to be sent through following code-
>
> intent = new Intent(Intent.ACTION_VIEW, Uri.parse("sms:"));
> intent.putExtra("sms_body", "SMS Text");
> startActivity(intent);
>
> It worked fine and sends the message to selected number from contact
> list.
>
> My requirement is that i want to know the number to which my SMS was
> sent?
>
> Please help me...its urgent.
>
> Thanks in advance.
>
> Amit
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en