当前位置: 代码迷 >> Android >> android调用系统发短信传接电话号码和短信内容
  详细解决方案

android调用系统发短信传接电话号码和短信内容

热度:43   发布时间:2016-05-01 17:26:40.0
android调用系统发短信传递电话号码和短信内容
看了很多人做发短信功能时,调用系统的发短信界面,但是电话号码始终传不过去,所以看见很多人传递了重复的烂帖子!那些方法都是行不通的。应该这么做:
Intent intent = new Intent(Intent.ACTION_VIEW);                                //就是这句话				intent.putExtra("address", "123456");				intent.putExtra("sms_body", "I am joe!");				intent.setType("vnd.android-dir/mms-sms");				startActivity(intent);
  相关解决方案