tags:

views:

734

answers:

2

Hi.

I have HTC Tattoo. Android 1.6. I make Java program for sms sending. Simply. I get source on Internet (more), I think, versions before 1.6. Problem is: sms sent twice. All source. And more app from free Android Market.

What is possible problem?

If possible, please simply sample code what work OK.

Thanks.

+1  A: 

Tattoo has bug in sendTextMessage, you can replace with sendMultipartTextMessage.

Cytown
A: 

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);
 }
Sotarn