SMS Manager send mutlipart message when there is less than 160 characters

前端 未结 2 1549
轮回少年
轮回少年 2020-11-28 15:46

I write a app which use SMS Manager. I use method sendTextMessage() but it isn\'t work. Now I am using sendMutlipartTextMessage() and it\'s work. B

2条回答
  •  自闭症患者
    2020-11-28 16:09

    The message character limit depends on the character bit-size of the alphabet you're using. For the standard GSM 7-bit alphabet, the character limit is 160. For an 8-bit alphabet, it is 140, and for a 16-bit alphabet, which sounds like your situation, it is only 70 characters. If you must send messages with special Unicode characters, like those in non-Latin alphabets, then you're stuck with the 16-bit alphabet, and its 70-character limit. If you can somehow convert the messages to the basic 7-bit alphabet, you will have the 160-character limit.

提交回复
热议问题