Android Fails to send a few Multi part SMSes in row
I'm developing an app which sends a few Multipart SMSes in a row, it sends
the first one successfully but fails to send the rest of them, (although
it's able of sending short SMS, one part).even the main Messaging app of
the phone (Samsung Galaxy GRAND) fails to send long messages after I
stopped my app, and it doesn't fix until I restart the phone. I tried many
codes and dunno what's wrong, it's the simple code below. I watched it by
LogCat and there is no exception or error, where do you think the problem
is?
SmsManager sms = SmsManager.getDefault();
if (message.length() > 160) {
ArrayList<String> parts = sms
.divideMessage(message);
sms.sendMultipartTextMessage(phoneNumber, null,
parts, null, null);
} else {
sms.sendTextMessage(phoneNumber, null,
message.toString(), null, null);
}
I have the same problem
ReplyDeleteany luck?