1

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

Najeebullah Shah
  • 4,164
  • 4
  • 35
  • 49

0 Answers0