开发者

Android 1.6 SMS (older application code)

I have HTC Tattoo with Android 1.6. I have maed a Java program for S开发者_如何学PythonMS 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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜