发送彩信,而不在android的用户交互 [英] send mms without user interaction in android

查看:87
本文介绍了发送彩信,而不在android的用户交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 Intent intent = new Intent(Intent.ACTION_SENDTO);
 intent.putExtra("address", "12134567899");
 intent.putExtra("sms_body", "See attached picture");


 intent.putExtra(Intent.EXTRA_STREAM,
 Uri.parse("file:///sdcard/DCIM/Camera/2011-09-09 12.47.29.jpg"));
 intent.setType("image/png");


 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

 startActivity(intent);

我尝试code这样。如果意图开始彩信编写UI来了我怎样才能克服和自动发送

i try code like this. if intent start mms compose ui was coming how can i overcome and send automatically

推荐答案

首先。祝你好运。 由于不支持彩信的Andr​​oid SDK中,你有两个选择:

First of all. good luck. Since MMS isn't supported by the android sdk, you have 2 options:

  1. 下载Android彩信aplication并试图了解发生了什么事情在那里。

  1. download the android mms aplication and try to understand what's going on there.

请点击此链接: <一href="http://androidbridge.blogspot.com/2011/03/how-to-send-mms-programmatically-in.html">http://androidbridge.blogspot.com/2011/03/how-to-send-mms-programmatically-in.html

我唯一发现,目前的工作......

only thing I found working at the moment....

这篇关于发送彩信,而不在android的用户交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆