Android的 - 发送短信,使文字无法编辑 [英] Android - Send SMS and make the text not editable
问题描述
String number = "0707775544";
Uri uri = Uri.parse(number);
Intent smsIntent = new Intent(Intent.ACTION_SENDTO, uri);
smsIntent.putExtra("sms_body", "Hello world!");
startActivity(smsIntent);
当我运行这个code,Android的默认短信打开了,我当然可以送这个。我的问题是:是否有反正我可以使文本世界,你好!不可编辑,如果你想要写个人信息,它就会低于这个世界,你好!。
When I run this code, Android's default SMS opens up and I can of course send this. My question is: is there anyway I can make the the text "Hello world!" NOT editable, and if you want to write a personal message, it gets below this "Hello world!".
在此先感谢!
推荐答案
如果我有问题吧,<一个href=\"http://developer.android.com/reference/android/telephony/SmsManager.html#sendTextMessage%28java.lang.String,%20java.lang.String,%20java.lang.String,%20android.app.PendingIntent,%20android.app.PendingIntent%29\"相对=nofollow> SmsManager 是您的解决方案。
本教程也可能是有用的。
If i got the question right, SmsManager is your solution. This tutorial might also be usefull.
这篇关于Android的 - 发送短信,使文字无法编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!