Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.putExtra("sms_body", "The SMS text");
sendIntent.setType("vnd.android-dir/mms-sms");
startActivity(sendIntent);

Source:
http://jtribe.blogspot.com/2008/12/sending-sms-using-android-intents.html

On Oct 28, 12:12 am, sori <[EMAIL PROTECTED]> wrote:
> The list of available intents (http://code.google.com/android/
> reference/available-intents.html) does not show any info onSMS
> scheme.
>
> I understand that there is a way to sendSMSmessages directly from my
> applications, but I'd like to use existing thread-basedSMS
> application in Android G1 by just forwarding call number and message.
>
> I found that "sms:number" is a way to post the destination number, but
> couldn't
> figure out how to specify the messagebody.
> I tried many possible options, but all failed.
>
> Is this supported?  Any info will be appreciated.
> - Sori
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to