Im writing an app that sends an SMS to several contacts. The contacts numbers are stored in an ArrayList
(was received from another activity). I am not able to
Use this code..
String toNumbers = "";
for ( String s : numbersArrayList)
{
toNumbers = toNumbers + s + ";"
}
toNumbers = toNumbers.subString(0, toNumbers.length - 1);
String message= "this is a custom message";
Uri sendSmsTo = Uri.parse("smsto:" + toNumbers);
Intent intent = new Intent(
android.content.Intent.ACTION_SENDTO, sendSmsTo);
intent.putExtra("sms_body", message);
startActivity(intent);