当前位置: 代码迷 >> Android >> android 透过intent调用短消息的正确方法
  详细解决方案

android 透过intent调用短消息的正确方法

热度:16   发布时间:2016-04-28 06:03:13.0
android 通过intent调用短消息的正确方法

今天使用到用INTENT调用短消息,在网上搜索了都不正确。看了文档,总结示例代码如下:

            String uri= "smsto:";            Intent it = new Intent(Intent.ACTION_SENDTO, Uri.parse(uri));            it.putExtra("sms_body", desc);            it.putExtra("compose_mode", true);            mActivity.startActivity(it);

?

  相关解决方案