Sending MMS into different Android devices

Posted by 6istik on Stack Overflow See other posts from Stack Overflow or by 6istik
Published on 2010-01-29T22:08:50Z Indexed on 2010/06/03 22:04 UTC
Read the original article Hit count: 150

Filed under:
|
|

I need to send MMS. Into my hero this code looks ugly but works:

Intent sendIntent = new Intent("android.intent.action.SEND_MSG"); 
   sendIntent.putExtra("address", toText); 
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "subject");

sendIntent.putExtra("sms_body", textMessage); 
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));
sendIntent.setType("image/jpeg"); 
startActivity(sendIntent);

But it seems to me that on the other devices it doesn't work at all. I want to send directly to main messaging app without any choices(the better solution of course - direct from my app). Because not sure that all of them would handle it properly. If anybody could recommend any third-party library I'll be appretiate.

© Stack Overflow or respective owner

Related posts about android

Related posts about messaging