Method and terminal for processing short message
First Claim
Patent Images
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.
1 Assignment
0 Petitions
Accused Products
Abstract
Method and terminal for processing short message are provided, wherein the method includes: when a short message is received, an index identifier corresponding to the short message is created, and the index identifier is stored into a preset index file, and the short message is stored into a preset message file according to the index identifier. The method performs processes to short message in storage space of mobile terminal according to actual data length of short message, and stores as many short messages as possible in limited storage space.
14 Citations
6 Claims
-
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. - View Dependent Claims (2, 3)
-
-
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; anda 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. - View Dependent Claims (5, 6)
-
Specification