Wednesday, May 15, 2013

[android-developers] Re: How to Send MMS

// Get the URI of a piece of media to attach. 
Uri attached_Uri = Uri.parse("content://media/external/images/media/1"); 

// Create a new MMS intent 
Intent mmsIntent = new Intent( Intent.ACTION_SEND, attached_Uri); 
mmsIntent.putExtra("sms_body", "Please see the attached image"); 
mmsIntent.putExtra("address", "07912355432"); 
mmsIntent.putExtra(Intent.EXTRA_STREAM, attached_Uri); 
mmsIntent.setType("image/jpeg"); 
startActivity(mmsIntent);

Meier, Reto (2012-04-05). Professional Android 4 Application Development (Wrox Professional Guides) (Kindle Locations 18791-18794). John Wiley and Sons. Kindle Edition. 




On Tuesday, May 14, 2013 9:49:38 PM UTC-5, askl wrote:
Dear All,

Please help me, how to send a MMS in Android Programmatically. Please give a sample code for that.
Thanks
ASK.

--
--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate