How to send images in MMS in Android programmatically
I want to make Android apps for sending images using MMS. Here is the problem:
final ConnectivityManager connMgr =
(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
final int result =
connMgr.startUsingNetworkFe开发者_开发技巧ature( ConnectivityManager.TYPE_MOBILE,
Phone.FEATURE_ENABLE_MMS);
Phone.FEATURE_ENABLE_MMS feature is not available.
Just use enableMMS instead of the above constant. If you donwload the complete Android code you can get the above data.
you can used this. Android:How to send a voice as mms attachment?
just change set type with image/png or your image path.
精彩评论