The validity period is exists in both GSM and CDMA, which indicates the maximum time that the text message can be saved in the SMS center. The default value is 0. This value does not mean that the time is 0, it refers to the default time set by the network, that is, determined by the carrier for the user, the value is a byte of data in the PDU, so it can represent the number between 0 and;
Priority only exists in CDMA, indicating the priority of the text message sent to the recipient's mobile phone in the SMS center. Theoretically, when there are multiple text messages at the same time, the text message with a higher priority should be forwarded first; however, it is not clear whether the domestic network has done so. There are four priorities in total: Normal, interactive, urgent, and urgent, corresponding to 0, 1, 2, and 3 respectively. To put it bluntly, the four numbers are involved;
In the Requirements Specification of China Telecom, these two fields are mandatory for CDMA mobile phones, that is, to provide a menu for users to set the SMS priority and SMS validity period, these two fields are included in the actually sent text message data;
Fortunately, Android's CDMA processing already provides support for these two fields, but these two fields are not added by default, you only need to add the priority and validity period set by the user. You need to modify the smsmessage of CDMA. java;