Android: Is there a universal way to send the MMS on any android devices? Android: Is there a universal way to send the MMS on any android devices? android android

Android: Is there a universal way to send the MMS on any android devices?


Sense, especially the older versions are a pain. There webview control also has a bunch of problems. Depending on volume of messages you might try using a webservice like amazon's simple notification service to send sms messages: http://aws.typepad.com/aws/2011/11/amazon-simple-notification-service-now-supports-sms.htmlIts not an android solution, but it might work.


You could detect whether there's a responder for the HTC Intent, and then branch:

intent = new Intent("android.intent.action.SEND_MSG");intent.putExtra(Intent.EXTRA_STREAM, uri);intent.setType("image/png");resolves = getActivity().getPackageManager().queryIntentActivities(intent,        PackageManager.MATCH_DEFAULT_ONLY);if (resolves.size() > 0) {    // This branch is followed only for HTC     context.startActivity(intent);} else {    // Else launch the non-HTC sense Intent    intent = new Intent(android.content.Intent.ACTION_SEND);    intent.setType("image/png");    intent.putExtra(Intent.EXTRA_STREAM, uri);    context.startActivity(Intent.createChooser(intent,            context.getString(R.string.send_intent_name)));    }


You may use it like this:

Intent i = new Intent(Intent.ACTION_SEND);i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);i.putExtra(Intent.EXTRA_EMAIL, new String[]{""});i.setType("video/3gp");i.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + attachmentFilePath));startActivity(i);