【发布时间】:2026-02-04 03:25:01
【问题描述】:
此代码有效,它打开了默认的 SMS 应用程序,消息出现在文本框中,准备输入号码并发送,但现在此代码在上述棉花糖中不起作用。
但现在如果默认应用是消息传递就不起作用了
Uri uri = Uri.parse("smsto:" + mphoneno);
Intent it = new Intent(Intent.ACTION_SENDTO, uri);
it.putExtra("sms_body", message);
mActivity.startActivity(it);
【问题讨论】:
标签: android android-intent android-6.0-marshmallow smsmanager