Legal claims defining the scope of protection, as filed with the USPTO.
1. A method for processing short message, comprising: a mobile terminal receiving a short message, and creating an index identifier corresponding to the short message, wherein the index identifier comprises: an index number, an index storage address corresponding to the index number and a data length of a short message corresponding to the index number; the mobile terminal storing the index identifier in a preset index file of an SIM card of the mobile terminal; and the mobile terminal storing the short message in a preset message file of the SIM card of the mobile terminal according to the index identifier; wherein the step of creating the index identifier corresponding to the short message comprises: searching the index file; obtaining an index number of the short message and an index storage address of the short message according to the index file; and obtaining a data length of the short message; wherein the step of obtaining the index number of the short message and the index storage address of the short message according to the index file comprises: adding an index number sequentially after a previous index number in the index file to obtain the index number of the short message; and adding a data length of a short message corresponding to the previous index number to an index storage address corresponding to the previous index number to obtain the index storage address of the short message; wherein the step of storing the short message in the preset message file according to the index identifier comprises: searching the message file; shifting in the message file to the index storage address of the short message in the index identifier; and storing the short message in the message file according to the index storage address of the short message.
2. The method according to claim 1 , wherein after the step of storing the short message in the preset message file according to the index identifier, the method further comprises: searching, according to an index number of a short message to be deleted, for a corresponding index storage address and a data length of the corresponding short message in the index file; deleting, from the message file, bytes of the data length of the corresponding short message at the corresponding index storage address; and deleting, from the index file, the corresponding index storage address and the data length of the corresponding short message.
3. The method according to claim 2 , wherein after the step of deleting from the index file the corresponding index storage address and the data length of the corresponding short message, the method further comprises: after the short message to be deleted is deleted, shifting an address of a short message after the deleted short message backward by the data length of the deleted short message; shifting backward the index number of the deleted short message in the index file.
4. A mobile terminal for processing short message, comprising a hardware processor configured to execute the following modules: a receiving module, configured to receive a short message; a creating module, configured to create an index identifier corresponding to the short message, wherein the index identifier comprises: an index number, an index storage address corresponding to the index number and a data length of a short message corresponding to the index number; and a storing module, configured to store the index identifier in a preset index file of an SIM card of the mobile terminal, and store the short message in a preset message file of the SIM card of the mobile terminal according to the index identifier; wherein the creating module comprises: a first searching unit, configured to search the index file; and an obtaining unit, configured to obtain an index number of the short message and an index storage address of the short message according to the index file, and obtain a data length of the short message; wherein the obtaining unit comprises: an index number obtaining subunit, configured to sequentially add an index number after a previous index number in the index file to obtain the index number of the short message; and an index storage address obtaining subunit, configured to add a data length of a short message corresponding to the previous index number to an index storage address corresponding to the previous index number to obtain the index storage address of the short message; wherein the storing module comprises: a second searching unit, configured to search the message file; an shifting subunit, configured to shift in the message file to the index storage address of the short message in the index identifier; and a storing subunit, configured to store the short message in the message file according to the index storage address of the short message.
5. The mobile terminal according to claim 4 , further comprising: a searching module, configured to search, according to an index number of a short message to be deleted, for a corresponding index storage address and a data length of the corresponding short message in the index file; and a deleting module, configured to delete, from the message file, bytes of the data length of the corresponding short message at the corresponding index storage address, and delete the corresponding index storage address and the data length of corresponding the short message from the index file.
6. The mobile terminal according to claim 5 , wherein the shifting subunit is further configured to, after the short message to be deleted is deleted, shift an address of a short message after the deleted short message backward by the data length of the deleted short message, and shift backward the index number of the deleted short message in the index file.
Unknown
February 23, 2016
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.