1

In Android, I found that we use android.telephony.SmsManager to send SMS using the function void sendTextmessage(..), with the field destinationAddress = contact number.

example:

SmsManager sm = SmsManager.getDefault(); 
String destinationAddress = "9508170711";
sm.sendTextMessage(destinationAddress, null, "Test SMS Message", null, null); 

What is the implementation/function to use if I have to send SMS to group of contacts retrieved from the phone book? If we use the same function sendTextmessage(..).. what should the destinationAddress be?

Misha Zaslavsky
  • 8,414
  • 11
  • 70
  • 116
Jitendar M
  • 633
  • 1
  • 10
  • 26
  • http://stackoverflow.com/questions/11176270/how-to-send-a-sms-to-many-recipients – Ketan Parmar Sep 03 '12 at 06:45
  • Is that the right way to do it? I mean looping around for each phone number & registering NEW BroadcastReceiver for each phone number & sending sms individually in the backend? – Jitendar M Sep 03 '12 at 06:58
  • try this i hope work for u... [http://stackoverflow.com/questions/11840057/sending-sms-to-multiple-contacts-stored-in-a-textview][1] [1]: http://stackoverflow.com/questions/11840057/sending-sms-to-multiple-contacts-stored-in-a-textview – neeraj kirola Jun 20 '14 at 13:15

0 Answers0