I am sending sms nearly to 90-100 number's using SmsManager
, I am reading number's from file and passing the number to sendtextmessage function as below
String[] nos;// this array contains mobile nos
SmsManager sm = Smsmanager.getDefault();
for(int i=0;i<nos.length;i++){
sm.sendtextmessage(nos[i],null,"hello",null,null);
}
problem is:
Your code is right but the problem is that you are firing SMS in a for loop. The for loop is going to execute very fast while Sms Sending action requires some delay before sending a next SMS.
Previously I have done same kind of program in Java, you may find it's working code in my other answer. So during my development I come to know that SMS sending activity requires a time gap before sending next SMS. So I would like to suggest you to have a delay of atleast a 1000 micro second before sending the next SMS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With