Sending SMS to multiple recepients (Samsung vs HTC)

梦想的初衷 提交于 2020-02-02 15:28:40

问题


I am using the following code in Samsung that works fine for me,

Intent smsIntent = new Intent(Intent.ACTION_SENDTO,Uri.parse("smsto:123,456"));
smsIntent.putExtra("sms_body", messageBody);
startActivity(smsIntent);

and the following that works fine in HTC

Intent smsIntent = new Intent(Intent.ACTION_SENDTO,Uri.parse("smsto:123;456"));
smsIntent.putExtra("sms_body", messageBody);
startActivity(smsIntent);

Difference is the use of "," and ";" as a delimiter in samsung and htc respectively. Is there a generic way to do that (without using sms manager).

Any help is appreciated in advance

来源:https://stackoverflow.com/questions/11687092/sending-sms-to-multiple-recepients-samsung-vs-htc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!