CN100571431C - The short message storage and the processing method that are used for portable terminal - Google Patents

The short message storage and the processing method that are used for portable terminal Download PDF

Info

Publication number
CN100571431C
CN100571431C CNB2007101300268A CN200710130026A CN100571431C CN 100571431 C CN100571431 C CN 100571431C CN B2007101300268 A CNB2007101300268 A CN B2007101300268A CN 200710130026 A CN200710130026 A CN 200710130026A CN 100571431 C CN100571431 C CN 100571431C
Authority
CN
China
Prior art keywords
short message
file
memory location
portable terminal
processing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2007101300268A
Other languages
Chinese (zh)
Other versions
CN101106781A (en
Inventor
段红乐
徐金禄
谢仁艿
丁吉
王志慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB2007101300268A priority Critical patent/CN100571431C/en
Publication of CN101106781A publication Critical patent/CN101106781A/en
Application granted granted Critical
Publication of CN100571431C publication Critical patent/CN100571431C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a kind of short message storage and processing method that is used for portable terminal, this method may further comprise the steps: S102, on the memory of portable terminal, be respectively inbox, outbox and draft and create an independent file, wherein, the short message of fixed qty is fixed and be used to store to the size of each file, and each memory location of file corresponds respectively to fixed number; S104, portable terminal are after receiving short message, and the memory location in the file of sequential search inbox is being under the situation of free memory location, store short message into this memory location and write down the fixed number of memory location correspondence; And S106, under situation about need operate, operate according to the short message in the fixed number locating file and to short message to short message.By method of the present invention, the speed that can accelerate in the file system storage and search short message, and the utilance that improves file system.

Description

The short message storage and the processing method that are used for portable terminal
Technical field
The present invention relates to technical field of mobile terminals, especially relate to the short message storage and the processing method that are used for portable terminal.
Background technology
Along with the develop rapidly of advanced information society, mobile terminal devices such as mobile phone become requisite means of communication in people work, the life gradually, and short message has obtained using very widely as a kind of business that provides of portable terminal.
In order to satisfy user's demand, present most of portable terminals are except also providing the short message memory function in the file system of portable terminal this locality on (U) SIM card.The storage short message has advantages such as capacity is big, access speed is fast in file system.But,, will reduce the speed of user when operating short message greatly if there is not a kind of good memory management method along with the increase of number of short in the portable terminal.
At present the short message storage method in the mobile terminal document system is mainly: every short message is stored as an independent file, store a short message and understands a newly-built file, searches each file when reading, and file is deleted after finding file during deletion.The shortcoming of this way is: when the short message number is very big, can have a lot of short message files in the file system, need spend long time when reading and deleting certain bar short message and search looking into like this; And the frequent deleted file of setting up can make and produce a lot of fragments in the file system, and space availability ratio can descend.Particularly can wait under the situation of preserving according to inbox, outbox, draft at present mobile terminal short message, the efficient of this method is lower.
Summary of the invention
In view of one or more problems recited above, the invention provides a kind of new the short message storage and the processing method that are used for portable terminal, the speed that can accelerate storage in the file system and search short message, and the utilance that improves file system.
A kind of short message storage and processing method that is used for portable terminal according to the present invention may further comprise the steps: S102, on the memory of portable terminal, be respectively inbox, outbox and draft and create an independent file, wherein, the short message of fixed qty is fixed and be used to store to the size of each file, and each memory location of file corresponds respectively to fixed number; S104, portable terminal are after receiving short message, and the memory location in the file of sequential search inbox is being under the situation of free memory location, store short message into this memory location and write down the fixed number of memory location correspondence; And S106, under situation about need operate, operate according to the short message in the fixed number locating file and to short message to short message.
Wherein, the operation that short message is carried out comprises following at least a: read short message, deletion short message, editor's short message.Behind the deletion short message, the memory location of short message is write 0, and it is deleted with the sign short message that flag bit is set.When making is used for the file system of portable terminal, will be in the memory module of portable terminal corresponding to the file programming in inbox, outbox and the draft.When starting shooting for the first time, create the file that is used for inbox, outbox and draft.
By method of the present invention, the speed that can accelerate in the file system storage and search short message, and improve the utilance of file system.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is according to the short message storage of portable terminal and the flow chart of processing method of being used for of the present invention;
Fig. 2 is storage according to an embodiment of the invention, read and the flow chart of delet method;
Fig. 3 is that according to another embodiment of the invention terminal is stored the flow chart of the method for short message in local file system;
Fig. 4 is according to another embodiment of the invention terminal reads the method for short message in local file system a flow chart; And
Fig. 5 is that according to another embodiment of the invention terminal is deleted the flow chart of the method for short message in local file system.
Embodiment
Below with reference to accompanying drawing, describe the specific embodiment of the present invention in detail.
Fig. 1 is according to the short message storage of portable terminal and the flow chart of processing method of being used for of the present invention.As shown in Figure 1, this method may further comprise the steps:
S102, each case such as inbox, outbox, draft is stored as an independent file, the size of each file is (all being written as 0 during initialization) of fixing, can store the short message (being decided by the storable short message number of this case of when design) of fixed number, all there is fixing numbering (for example from 1 to the storable short message number of this case) each position.
S104, the memory location in when storage can the sequential search file is stored in this position with short message after finding available position, and notes Position Number.
S106 can locate a short message fast by the fixed number of short message, and short message is operated when searching.
Wherein, every short message is stored with set form hereof, the storage size that takies also is (serial connection short message will take a plurality of memory locations) of fixing, and the numbering of the memory location that the numbering of each locational short message and this short message are shared is identical.The programming when making file system of the file of each case advances in the flash memory (Flash) or when starting shooting for the first time to create.Read a short message according to fixed size when reading, this short message memory location can be write 0 during deletion, perhaps represent that by flag bit is set this short message deletes.
Fig. 2 is storage according to an embodiment of the invention, read and the flow chart of delet method.As shown in Figure 2, this method may further comprise the steps:
S202, application layer requires short message of storage.
S204, the memory location in the sequential search file is up to finding an empty position or finding the end of file end.
S206 if there is free position to use, then stores short message into this position, and returns the numbering of this position to application; As it is full not have available this case of then pointing out.
S208, application layer requires to read the short message that is numbered N in this case.
S210, directly reading this content of short message to the memory location that is numbered N returns to application layer.
S212, application layer requires deletion to be numbered the short message of M.
S214 directly deletes this short message to the memory location that is numbered M.
Fig. 3 is that according to another embodiment of the invention terminal is stored the flow chart of the method for short message in local file system.As shown in Figure 3, this method may further comprise the steps:
Before implementing following steps, in file system, set up the file of short message.
S302 sets up each case corresponding file in file system, decide the size of file by the size of every short message and storage number altogether, and be written as complete 0.
Secondly, when the upper layer application layer of terminal need be stored a short message, according to steps of processing.
S304, the memory location in the sequential search file is up to finding an empty position or finding end of file.
S306 has judged whether that the sky position can use, if any then entering step S310; Otherwise enter step S308.
S308 points out this case full, enters S312.
S310 is stored in this position with short message, and the numbering of returning this memory location is given the upper layer application layer.
S312 finishes the short message Stored Procedure.
Fig. 4 is according to another embodiment of the invention terminal reads the method for short message in local file system a flow chart.As shown in Figure 4, when terminal upper layer application layer need read a short message, according to steps of processing:
S402, the short message that should provide according to upper strata numbering N, the memory location is that the place of N is read this short message and content of short message is returned to the upper layer application layer by fixed size in the file.
S404 finishes short message and reads flow process.
Fig. 5 is that according to another embodiment of the invention terminal is deleted the flow chart of the method for short message in local file system.As shown in Figure 5, when terminal upper layer application layer need be deleted a short message, according to steps of processing:
S502, the short message that should provide according to upper strata numbering M, the memory location is that the place of M is labeled as deletion with this short message and maybe this position is write 0 in the file.
S504 finishes short message deletion flow process.
According to short message storage and the processing method that is used for portable terminal of the present invention, the short message memory location is fixed, and has accelerated the speed of storing and searching short message in the file system; Each case is preserved with a file, thus can newly-built or deleted file, reduced the fragment in the file system, improved the utilance of file system.The short message file has only been used the memory space of hundreds of kilobytes, and this has only taken little space for the file system that is generally tens or tens Mbytes.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. a short message storage and a processing method that is used for portable terminal is characterized in that, may further comprise the steps:
S102, on the memory of portable terminal, be respectively inbox, outbox and draft and create an independent file, wherein, the short message of fixed qty is fixed and be used to store to the size of each file, and each memory location of described file corresponds respectively to fixed number;
S104, described portable terminal is after receiving short message, memory location in the file of the described inbox of sequential search is being under the situation of free memory location, stores described short message into this memory location and writes down the described fixed number of described memory location correspondence; And
S106 under situation about need operate described short message, searches the short message in the described file and described short message is operated according to described fixed number.
2. short message storage according to claim 1 and processing method is characterized in that the operation that described short message is carried out comprises following at least a: read short message, deletion short message, editor's short message.
3. short message storage according to claim 2 and processing method is characterized in that, behind the described short message of deletion, the memory location of described short message are write 0.
4. short message storage according to claim 2 and processing method is characterized in that behind the described short message of deletion, it is deleted to identify described short message that flag bit is set.
5. according to each described short message storage and processing method in the claim 1 to 4, it is characterized in that, will be in the memory module of described portable terminal when making is used for the file system of described portable terminal corresponding to the file programming of described inbox, described outbox and described draft.
6. according to each described short message storage and processing method in the claim 1 to 4, it is characterized in that, when starting shooting for the first time, create the file that is used for described inbox, described outbox and described draft.
CNB2007101300268A 2007-07-25 2007-07-25 The short message storage and the processing method that are used for portable terminal Expired - Fee Related CN100571431C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101300268A CN100571431C (en) 2007-07-25 2007-07-25 The short message storage and the processing method that are used for portable terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101300268A CN100571431C (en) 2007-07-25 2007-07-25 The short message storage and the processing method that are used for portable terminal

Publications (2)

Publication Number Publication Date
CN101106781A CN101106781A (en) 2008-01-16
CN100571431C true CN100571431C (en) 2009-12-16

Family

ID=39000406

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101300268A Expired - Fee Related CN100571431C (en) 2007-07-25 2007-07-25 The short message storage and the processing method that are used for portable terminal

Country Status (1)

Country Link
CN (1) CN100571431C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227515B (en) * 2008-01-30 2011-01-19 中兴通讯股份有限公司 Method for searching information in mobile terminal
CN101710920B (en) * 2009-11-23 2015-05-13 中兴通讯股份有限公司 Message management method and message management system of mobile communication terminal

Also Published As

Publication number Publication date
CN101106781A (en) 2008-01-16

Similar Documents

Publication Publication Date Title
CN101170766B (en) A method for automatic SMS classification of mobile phone
CN100579267C (en) Expression symbol call method and device
CN1829261A (en) Mobile terminal and system providing multilingual support
CN1149816C (en) Extended telephone directory for a mobile telephone
CN103200293A (en) Method of automatically combining tautonomy contacts in process of guiding contacts into contact list
CN101826107A (en) Hash data processing method and device
CN101452422B (en) Chip data read-write method, corresponding apparatus and system
CN100504872C (en) Method for storing applied data in telecommunication smart card
CN100507873C (en) FLASH document management method and system in FLASH memory
CN100571431C (en) The short message storage and the processing method that are used for portable terminal
CN101827140B (en) Method for writing data in user identification module card and mobile terminal
CN102436380A (en) STK menu handling system and processing method for menu
CN102970401A (en) Method and device for recoding contact information
CN103346821A (en) Method for transferring address list through bluetooth
CN101014059A (en) Method for storing and extending data information of electric phone book
CN100544378C (en) The method of storage management of terminal's contact book
CN105872232A (en) Number on-line inquiry method and number on-line inquiry apparatus
CN102271186B (en) A kind of realize phone directory and the method for note rapid matching of associated information and mobile terminal
KR100624863B1 (en) Method for effectively using memory in mobile station
CN100407208C (en) Method for storing and reading external memory-card structure and schedule record
CN102915324A (en) Data storing and retrieving device and data storing and retrieving method
CN100455081C (en) Method for recording information in extending user card
CN1271873C (en) Expanding method of telephone directory in subscriber identifying module
CN101621577B (en) Short message processing method and short message processing terminal
CN105072256A (en) System and method for preventing information accident deletion

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091216

Termination date: 20210725

CF01 Termination of patent right due to non-payment of annual fee