Rohith Nandakumar
Rohith Nandakumar

Reputation: 11427

Android: Phone Sending 2 SMSs

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

Answers (1)

Stephan Branczyk
Stephan Branczyk

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

Related Questions