Android: Is there a universal way to send the MMS on any android devices?
Posted
by Roces
on Stack Overflow
See other posts from Stack Overflow
or by Roces
Published on 2010-06-02T09:40:53Z
Indexed on
2010/06/02
9:43 UTC
Read the original article
Hit count: 296
This code works on the plain google devices with native android system. But there is no MMS app in the list on htc sense devices and I don't know about Motorola Blur etc.:
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("image/png");
emailIntent.putExtra(Intent.EXTRA_STREAM, uri);
context.startActivity(Intent.createChooser(emailIntent, context.getString(R.string.send_intent_name)));
This code works on the htc sense but not from the Chooser, what I really need:
Intent sendIntent = new Intent("android.intent.action.SEND_MSG");
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
sendIntent.setType("image/png");
context.startActivity(sendIntent);
But I don't know how to combine this code samples together and I don't know how to determine Htc Sense ui programmatically. Is it right way to support different type of devices?
Thank you for answers.
© Stack Overflow or respective owner