开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜