Sending Message To Multiple Persons Using Send Intent Android
I am trying to use the android share intent from my application. I have listed all the contacts from my contacts content provider in my application. Now i want to send message to a
Solution 1:
To send SMS to multiple numbers you need to separate the numbers with ;
Sample here:
String toNumbers = "";
ArrayList<String> numbersArrayList;// your phone numbers herefor ( Stringnumber : numbersArrayList)
{
toNumbers = toNumbers + number + ";"//separating numbers with semicolon
}
toNumbers = toNumbers.subString(0, toNumbers.length - 1);// remove the last semicolon
...
sendIntent.putExtra(android.content.Intent.EXTRA_PHONE_NUMBER, toNumbers);
Post a Comment for "Sending Message To Multiple Persons Using Send Intent Android"