简体   繁体   English

如何通过Android中的MMS发送下载的图片

[英]How to send an downloaded image via MMS in Android

In my application I am downloading an image from server.Now I want to send this image via MMS & Email. 在我的应用程序中,我正在从服务器下载图像,现在我想通过彩信和电子邮件发送该图像。

How can I do that. 我怎样才能做到这一点。

Please help 请帮忙

First save the image in the SD Card and then use the following code to open the MMS application for sending the saved image: 首先将图像保存在SD卡中,然后使用以下代码打开MMS应用程序以发送保存的图像:

Intent sendIntent = new Intent(Intent.ACTION_SEND); 
sendIntent.putExtra("sms_body", "some text"); 
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(url));//put the uri of your image here
sendIntent.setType("image/png");

read this link for more info. 阅读此链接以获取更多信息。

Read this link for sending MMS programmatically. 阅读此链接以编程方式发送MMS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM