Android的 - 接收长短信(多部分)短信、部分、Android

2023-09-12 03:12:11 作者:不适合说爱的年纪o

我有一个应用程序,它具有侦听特定的SMS。到目前为止容易。

I have an application, which has to listen for specific SMS. So far easy.

但是,当我收到消息,这是多部分。有没有收到短信为一体的消息有道?

But when I receive the message, it's multipart. Is there a proper way to receive the SMS as one message?

现在我的活动启动两次,对于短信的每一个部分。我应该串联短信手?

Now my activity starts two times, for each part of the sms. Should I concatenate the SMS by hand?

推荐答案

这可能是有用的看看如何gTalkSMS处理传入的SMS'es,因为它似乎正确地处理多部分消息。

It may be useful to look at how gTalkSMS handles incoming SMS'es, as it appears to handle multipart messages correctly.