由网友(心如止水)分享简介:我有 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...
我有 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);
}
相关推荐
最新文章