Android 1.6的手机短信(旧应用程序code) [英] Android 1.6 SMS (older application code)

查看:112
本文介绍了Android 1.6的手机短信(旧应用程序code)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 HTC纹身与Android 1.6。我已经MAED一个Java程序的短信发送。我得到的源在互联网上,我认为,版本1.6之前。现在的问题是:短信发送两次

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?

如果可能的话,请简单地张贴样品code什么工作确定。

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

推荐答案

Cytown是100%正确的。我有一个HTC纹身1.6,可以确认它的工作。

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

我的code:

public void onClick(View v) {

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

这篇关于Android 1.6的手机短信(旧应用程序code)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆