Sending SMS using Intents.

All your problems with Audio, Video and Images.

Sending SMS using Intents.

Postby Jhon » Fri Feb 05, 2010 10:46 am

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

With above code we can easily launch the sms screen using intents.
Now just we give mobile number in To:Edit field.
Happy Journey
Jhon
Jhon
Freshman
Freshman
 
Posts: 9
Joined: Wed Sep 09, 2009 4:06 pm

Top

Postby icobasco » Sat Feb 06, 2010 3:51 pm

Did you want to put it under Tutorials?
User avatar
icobasco
Senior Developer
Senior Developer
 
Posts: 108
Joined: Thu Jun 04, 2009 11:12 am
Location: Italy

Postby Jhon » Wed Feb 10, 2010 7:19 am

Hi
There is no problem in that code.
just i keep it for reference ..
Now i shift this code to tutorials..
Happy Journey
Jhon
Jhon
Freshman
Freshman
 
Posts: 9
Joined: Wed Sep 09, 2009 4:06 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 19 guests