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?