sendTextMessage


Last Updated: 2011-02-28 07:45:42
  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):
    1.  
    2. ArrayList<String> myArr = new ArrayList<String>();
    3.              
    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);
    12.  
    Please help me

    Advertisement

Share This Page