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 a a good resource for SMS anything/everything resides at the SmsPopup Source
精彩评论