1. Good things coming in just a couple hours, stay tuned!
    Dismiss Notice


Last Updated:

  1. nlearnandroid

    nlearnandroid New Member

    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.
    Code (Text):
    2. ArrayList<String> myArr = new ArrayList<String>();
    4.           myArr.add("557");
    5.           myArr.add("12178");
    6.  StringBuilder sb = new StringBuilder();
    7.             for (String string : myArr) {
    8.                 sb.append(string);
    9.                 sb.append(";");
    10.             }
    11.                 sm.sendTextMessage(sb.toString(), null, message, null,  null);
    Please help me


Share This Page