nlearnandroid
Lurker
Hi All
I am trying to send SMS through program.I am able to send text SMS on Single recipient(only one number) at a time but i try to send SMS more than one number.Then i have found some article,i read that article and implement it.But it's not working for me.
Please help me
I am trying to send SMS through program.I am able to send text SMS on Single recipient(only one number) at a time but i try to send SMS more than one number.Then i have found some article,i read that article and implement it.But it's not working for me.
Code:
ArrayList<String> myArr = new ArrayList<String>();
myArr.add("557");
myArr.add("12178");
StringBuilder sb = new StringBuilder();
for (String string : myArr) {
sb.append(string);
sb.append(";");
}
sm.sendTextMessage(sb.toString(), null, message, null, null);