3

I have HTC Tattoo with Android 1.6. I have maed a Java program for SMS sending. I got the source on the Internet, I think, versions before 1.6. The problem is: SMSs are sent twice.

What is a possible cause for this problem?

If possible, please simply post sample code what works OK.

2 Answers 2

4

Cytown is 100% correct. I got a HTC Tattoo with 1.6 and can confirm that it's working.

My code:

public void onClick(View v) {

            SmsManager sms = SmsManager.getDefault();
            ArrayList<String> smstext = sms.divideMessage("asdfasdf");
            sms.sendMultipartTextMessage("5556", null, smstext, null, null);
 }
2

HTC Tattoo has a bug in sendTextMessage. Instead, you can use sendMultipartTextMessage.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.