Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old February 28th, 2011, 01:45 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default sendTextMessage

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:
 
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);
Please help me

Advertisements
nlearnandroid is offline  
Last edited by nlearnandroid; February 28th, 2011 at 01:50 AM.
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:27 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.