Sms ui-SMS settings interface-SIM card SMS management

Source: Internet
Author: User
SIM card SMS management 1. Preface SMS management for SIM card, this function allows you to save text messages stored on a mobile phone to the SIM card, automatically save the text messages to the SIM card when you set the storage location as the SIM card, import the text messages in the SIM card to the phone, and display the SIM card. text message content, text message in SIM card deletion, and other functions. Here we will focus on how to display SIM card text messages, how to save the text messages stored on the SIM card, and a data structure of SIM card text messages. Figure 1 SIM card text message management interface 2. Sim text message parsing provides two types of messages stored in SIM cards: received messages and sent messages. During text message storage, we pack the content and header of the text message into a PDU and store it on the SIM card. The PDU varies according to different types of packaging. The following describes the structure of the received and sent text messages. 2.1 package the received SMS into a PDU and call the getdeliverypdu method of mesageutils. Its structure is as follows:

MTI Recipient number length Recipient number Encoding Method Time User Data

MTI is used to indicate the data headers related to user protocols, for example, whether a message is sent or received, and whether a report is sent.

The length of the recipient's number. This is relatively simple, and the encoding method is no longer described. It is generally divided into three types: 7bit, 8bit, and 16bit. Among them, 7bit and 16bit are used more. Time, the time when the user receives the text message. The text message content 2.2 is easier to send than the received text message. It is packaged into a PDU and packaged using the getsubmitpdu method of smessager. Its structure is as follows:

MTI TP-message-Reference Destination number length Destination number TP-protoclol-identifer The encoding method is User Data

Compared with the received text message, the sent PDU does not store the sending time, and then the Protocol character is added.

However, the overall function is roughly similar, so you may have stored the sent text message on some mobile phones, and the sending time will change with the local time, because the sending time is not saved to the SIM card, when the event is parsed, the local time is not used for display, but the above problem occurs because the local time is changed. 3. To sum up, we may be disappointed that the interface is not taken into account. The reason for this is that the display on the interface is simple and there is no difference with the text message display on the phone, if you are not clear, you can view the text message interface article.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.