我使用Intent
之类的
Intent si= new Intent(Intent.ACTION_VIEW);
si.putExtra("sms_body", "some text");
si.putExtra("address", "123456789");
si.setType("vnd.android-dir/mms-sms");
startActivity(si);
有没有办法可以限制用户添加任何其他文本,禁用本机应用程序的EditText
区域,这是可能的......
答案 0 :(得分:1)
而不是通过意图打开SMS APP为什么不使用SMS管理器(方法sendTextMessage)并从您的应用程序发送短信..
http://developer.android.com/reference/android/telephony/SmsManager.html
注意需要获得许可:http://developer.android.com/reference/android/Manifest.permission.html#SEND_SMS