简体   繁体   中英

Splitting Android SendSMS

My first problem is that any string longer that 1 word screws with the contact. For example: if I send "yo man", instead of coming up "5554: yo man" on the other emulator, it comes up as "yo: man". Second is the "sendMultipartTextMessage" I call when to string is too long (over 150 chars). It sends the proper amount of messages, but the messages themselves are just sequences of weird characters. What am I doing wrong?

Using SmsManager is pretty straight foward:

        SmsManager sms = SmsManager.getDefault();
        sms.sendTextMessage(phoneNum, null, MessageText, sentPI, deliveredPI);

On the receiving end it should not show anything unnatural using this method.

I recommend you search for it, as well as the splitting. A more specific question would provide a better answer, but aa good resource for SMS anything/everything resides at the SmsPopup Source

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM