Android 1.6 SMS (older application code)

后端 未结 2 1775
自闭症患者
自闭症患者 2020-12-11 09:48

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 sen

相关标签:
2条回答
  • 2020-12-11 10:14

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

    0 讨论(0)
  • 2020-12-11 10:29

    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);
     }
    
    0 讨论(0)
提交回复
热议问题