Reputation: 11427
I used this code to send a text message
try {
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(number, null, "Hi", null, null);
}
catch (IllegalArgumentException e) {
//show error
}
For some reason the system is sending 2 messages. Does it have anything to do with the code?
Upvotes: 2
Views: 164
Reputation: 9375
It's not your code. It's a bug in HTC Tatoo 1.6 (although there is also a workaround for it at the bottom of that thread).
Upvotes: 2