开发者

Android MMS code specific?

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("address","5554);
sendIntent.putExtra("sms_body", "some text");
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));
sendIntent.setType("image/png");

I have already given the receiver number programatically. Now I wanted only the "Send MMS" bu开发者_如何学Ctton event here. So can I handle it in code itself? My aim is disabling UI in this context. Is this achievable?

Is there anyway for attaching image without using intent?? Plz help.


Using "Intent.ACTION_SEND" will launch SMS/MMS applications. I think that is not what you want. MMS is a http post request. You have to implement in another way.


you will need to create member of type Activity which should injected in this class as constructor method or setter and within that context if you try your function it might solve.i have successfully send sms by this way.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜