views:

644

answers:

2

Hi,

I am using following code to send sms message:

SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNo, null, message, null, null);

But when this code is executed two sms messages are sent. Does anybody have idea what can be a problem?

I am using HTC Tattoo with android 1.6 I have tested this code on HTC Hero and everything is OK (only one message is sent).

A: 

I just checked Smspopup's source code, and we are using the same thing.

Try testing this code with the HTC Tattoo and see what happens.

Macarse
A: 

I have found solution

http://stackoverflow.com/questions/2015259/android-1-6-sms-problem-older-app-code

It is bug in tattoo's sendTextMessage

Mijalko