BroadcastReceiver for multipart SMS

后端 未结 2 648
傲寒
傲寒 2021-01-18 23:24

I need to store sms to a sqlite db when I receive one. At this moment it works fine with sms (160 chars), but if I receive a multipart sms it truncate the sms at about 155 c

2条回答
  •  一生所求
    2021-01-19 00:10

    155 chars sounds like the length of the user data when the user data header for a multipart SMS has been taken into account. In other words, it doesn't sound like there is a problem here - the PDU is being stored correctly. You will need to gather the other PDUs for the SMS to display / store the full thing.

提交回复
热议问题