开发者

Is it possible with concatinated data-SMS in Android?

Is the functionality for fragmentation and reassembling concatenated SMS messages built in for the sendsendDataMessage() and the sendTextMessage() ?

In other words; If I put a arraybyte over 200 bytes as inpu开发者_如何学Pythont to the sendDataMessage, will it be fragmented and reassembled automatically, so the getUserData() will give the same 200 bytes?


No, it couldn't. The maximum SMS message size is 140 bytes, even if when you use SmsManager.sendDataMessage().

So you need to set a loop to handle your multipart sms. Maybe you also need SmsManager.divideMessage(String text) to do several fragments.

Please refer to this man's problem: http://goo.gl/vl99e

BTW, so I think just for this reason, Google choose to open this API: SmsManager.sendMultipartTextMessage()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜