CN100574340C - A kind of method of searching SMS - Google Patents
A kind of method of searching SMS Download PDFInfo
- Publication number
- CN100574340C CN100574340C CNB2007101525350A CN200710152535A CN100574340C CN 100574340 C CN100574340 C CN 100574340C CN B2007101525350 A CNB2007101525350 A CN B2007101525350A CN 200710152535 A CN200710152535 A CN 200710152535A CN 100574340 C CN100574340 C CN 100574340C
- Authority
- CN
- China
- Prior art keywords
- querying condition
- note
- short message
- search
- user
- 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.)
- Active
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method of searching SMS, belong to the mobile phone technique field.This method is searched the required note of user after the note in the mobile phone memory is read mobile phone EMS memory, and search engine is searched for all notes according to the querying condition of user's input then, demonstrates the note record that all meet querying condition at last.The inventive method is searched the target note by the search information that the user provides, thereby has simplified the operating process of searching note, has improved the efficient of inquiry SMS simultaneously.
Description
Technical field
The present invention especially relates to a kind of method of searching SMS to belong to the mobile phone technique field.
Background technology
Current, along with the continuous increase of phone memory, be saved on the mobile phone memory block and mobile phone card (USIM, SIM or PIM) on note also increase gradually, main flow SMS capacity can be preserved hundreds of bar even several thousand basically on the market.With regard to causing a problem, up to a hundred notes are arranged in inbox like this, and during from different user,, will bother very much if want therefrom certain bar note of very fast certain user of location.Present solution is, browses every note one by one, finds certain user's note, reads again, if do not find this note, will continue down to search one by one.This operation was both inconvenient, lost time again.
Summary of the invention
Technical problem to be solved by this invention is a kind of method of searching SMS to be provided, thereby to search the target note that the user needs fast in a large amount of notes.
In order to address the above problem, the present invention proposes a kind of method of searching SMS, search the required note of user after note in the mobile phone memory read mobile phone EMS memory, search engine is searched for all notes according to the querying condition of user's input then, demonstrates the note record that all meet querying condition at last.
Said method specifically may further comprise the steps:
Step 1: search engine is searched for all notes according to the querying condition of user's input, demonstrates the note record that all meet querying condition;
Step 2: search engine is searched for all notes that satisfy last querying condition according to the new querying condition of user's input, demonstrates the note record that all meet querying condition, repeats aforementioned operation extremely to meeting consumers' demand.
In the said method, all meet when inquiring about once more in the note record of querying condition when the user is demonstrating, search engine is according to the new querying condition of user's input, in the note record that has searched out, search for once more, demonstrate the note record that all meet new querying condition then.
Above-mentioned querying condition is address name, the Subscriber Number that sends note, key message or short message receiving-transmitting time or its combination of short message content.
When above-mentioned querying condition is address name, the user directly imports this name by cell phone keyboard, mouse mode, perhaps from telephone directory, directly extract name to search box, perhaps from arbitrary note record of this name of having received, directly extract this name to search box.
When above-mentioned querying condition was the key message of short message content, search engine demonstrated the note record that all meet querying condition after key message and all short message contents are carried out content match.
In the said method, the note in the mobile phone memory read mobile phone EMS memory after, all short message contents are kept in the same file, described search this moment may further comprise the steps:
A: after opening file, read byte stream, search the short message content that satisfies querying condition, obtain the recording mechanism of the short message content that satisfies querying condition and these short message contents are kept in the cache file;
B: when the user re-enters querying condition, in cache file, read byte stream, search the short message content that satisfies new querying condition, obtain the recording mechanism of the short message content that satisfies new querying condition and preserve these short message contents, repeat aforementioned operation extremely to meeting consumers' demand to cache file.
Above-mentioned mobile phone memory is the volatibility or the nonvolatile memory that can be read by mobile phone.
The present invention searches the target note by the search information that the user provides, thereby has simplified the operating process of searching note, has improved the efficient of inquiry SMS simultaneously.The preferred embodiments of the present invention, all notes are saved in the file, when mating, the byte stream that reads from file can be very big at every turn, for example reads 2000 bytes at every turn, mate, suppose that every the note length that reads all is 100 bytes, then can read 20 notes, 1000 notes at every turn, only need read just can mate for 50 times and be over, thereby improve the efficient of searching note.
Description of drawings
Fig. 1 is the flow chart that adopts the embodiment 1 of technical scheme of the present invention;
Fig. 2 adopts among the embodiment 2 of technical scheme of the present invention interface schematic diagram when searching by name;
Fig. 3 adopts the result schematic diagram of searching by name among the embodiment 2 of technical scheme of the present invention;
Fig. 4 adopts among the embodiment 2 of technical scheme of the present invention interface schematic diagram when searching by short message content;
Fig. 5 adopts the result schematic diagram of searching by short message content among the embodiment 2 of technical scheme of the present invention;
Fig. 6 (a) is a note content file form schematic diagram in the prior art;
Fig. 6 (b) is the short message content file format schematic diagram that adopts a kind of preferred embodiment of technical solution of the present invention.
Embodiment
Below in conjunction with accompanying drawing the technical solution used in the present invention is described in further detail.
Main design of the present invention is, if allow the user that a querying condition is provided, promptly uses effective search engine to search the target note within a short period of time.The name information of the target note that will inquire about is provided as the user, just can effectively search all notes of this name, in these note record sets, can provide a querying condition more then, content information as the target note, search once more, so can repeatedly search, wherein after searching and be based on last Search Results once, thereby improve search efficiency.The user also can directly provide the content information of target note to search in addition, and promptly the user only need fill in and want the content of searching for, and can find the note of all these contents.Above-mentioned two kinds of querying conditions can be complementary.If, generally write down under few situation very effective at this name short message by name look-up target note; If it is by content search, generally very effective very for a long time at the note record of this name.
Step 101: the note in the memory is read internal memory;
In this step, from the memory of mobile phone, the note relevant information is read in the special-purpose separately memory block, and this memory address preserved, be convenient to when searching all records of a certain telephone number, can pass through this memory address, effectively find all note record, the wherein normally predefined continuation addresses of internal memory of this number fast.
Step 102: enter short message inbox;
Step 103: input inquiry condition;
Step 104: judge querying condition belongs to following which kind of situation,
A: name is empty, and content is empty, turns to step 105;
B: name is not empty, and content is empty, turns to step 106;
C: name is empty, and content is not empty, turns to step 109;
D: name is not empty, and content is not empty, turns to step 112;
In this step, the name of input is Chinese and English, name spelling or name initial etc.
Step 105: the prompting user fills in querying condition, turns to step 103;
Step 106: from the note memory array, find out all notes of this name, and preserve and demonstration;
Step 107: judge whether the note of searching meets consumers' demand, if turn to step 115, otherwise turn to step 108;
Step 108: the input inquiry content is searched for once more in the content search frame, turns to step 103;
Step 109: carry out content match by search engine;
Step 110:, read corresponding short message content from memory according to record in the note memory array;
Step 111: judge whether the note of searching meets consumers' demand, if turn to step 115, otherwise turn to step 103;
Step 112: from the note memory array, find out all notes of this name, and preserve and demonstration;
Step 113: carry out content match by search engine;
Step 114: according to record in the note memory array, read corresponding short message content, turn to step 107 from memory;
Step 115: check note.
When the note that finds out when the foregoing description was many, the user can adopt roll screen or tabular form to check note.
Among the embodiment 1,, read the local side content of short message of 1 mobile phone and only need several milliseconds, add and be no more than 10 seconds match time if read 1000 short message contents along with the mobile phone cpu performance improves.
After step 3, the search, show all notes of this name with tabular form, as shown in Figure 3;
After step 5, the search, demonstrate the target note with tabular form, as shown in Figure 5.
In the above-mentioned steps four, when searching for once more,, therefore may find many notes, but the hunting zone will dwindle much because content search does not possess uniqueness by short message content.
Steps A: the short message reading content is to internal memory from mobile phone memory;
Step B: import key message in the search box;
Step C: after the search, show all notes of this name with tabular form;
Step D: because it is more to contain the note number of this key message, the user searches for once more by name;
Step e: after the search, demonstrate the target note.
Can demonstrate the target note by tabular form in the step e, this tabulation can be arranged according to pinyin order, the note time of reception sequential scheduling of name, the user also can page turning search name in the target note that demonstrates, perhaps after the search, with roll screen or other form display-object note record that makes things convenient for the user to read.
Adopt a kind of preferred embodiment of technical solution of the present invention, adopt short message content file format as shown in Figure 6 to preserve all note records, when the user searches the target note, comprise the steps:
Step 601: open the short message content file;
In this step, prior art is that every note is kept at separately separately in the file, and shown in Fig. 6 (a), and this example is that all short message contents are all left in the file, shown in Fig. 6 (b).
Step 602: if when the querying condition of user input is the crucial note of content " Boy " of note, from file, read one section or multistage byte stream earlier, therefrom search " Boy " after, search additional character "] forward ", obtain recording mechanism.Then this note is copied in another temporary file " tmpSms " and preserve.Continue then to read next section byte stream, search for;
In this step, after searching keyword, when obtaining the note recording mechanism, search forward the method for additional character, also can adopt multiple existing techniques in realizing except adopting.
Step 603: because the user be need search for once more the time, the user imports new querying condition, as the note time of reception etc., only need be in " tmpSms " file the search routine of repetitive operation step 602, up to meeting consumers' demand.
Above-mentioned preferred embodiment, be primarily aimed at the short message content that is kept at the mobile phone memory block at present and be and be kept at one by one in the file separately, search short message content, search the respective file index value earlier, navigate to relevant file logging number by index value, read file by recording mechanism then, open file then, carry out content match, coupling finishes the back close file, read next bar, search successively.And this preferred embodiment is when searching note, open, close file each need once, be easy to search once more or repeatedly.
Foregoing only is an optimum implementation of the present invention, and it is not to be used for limiting the specific embodiment of the present invention, and all modification and changes of carrying out according to the main inventive concept of this method all should belong to the desired protection range of claims of the present invention.
Claims (7)
1, a kind of method of searching SMS, search the required note of user after note in the mobile phone memory read mobile phone EMS memory, it is characterized in that, search engine is searched for all notes according to the querying condition of user's input, demonstrate the note record that all meet querying condition at last, specifically may further comprise the steps:
Step 1: search engine is searched for all notes according to the querying condition of user's input, demonstrates the note record that all meet querying condition;
Step 2: search engine is searched for all notes that satisfy last querying condition according to the new querying condition of user's input, demonstrates the note record that all meet querying condition, repeats aforementioned operation extremely to meeting consumers' demand.
2, the method for claim 1, it is characterized in that, all meet when inquiring about once more in the note record of querying condition when the user is demonstrating, search engine is according to the new querying condition of user's input, in the note record that has searched out, search for once more, demonstrate the note record that all meet new querying condition then.
3, method as claimed in claim 1 or 2 is characterized in that, described querying condition is address name, the Subscriber Number that sends note, key message or short message receiving-transmitting time or its combination of short message content.
4, method as claimed in claim 3, it is characterized in that, when described querying condition is address name, the user directly imports this name by cell phone keyboard, mouse mode, perhaps from telephone directory, directly extract name to search box, perhaps from arbitrary note record of this name of having received, directly extract this name to search box.
5, method as claimed in claim 3 is characterized in that, when described querying condition was the key message of short message content, search engine demonstrated the note record that all meet querying condition after key message and all short message contents are carried out content match.
8, method as claimed in claim 1 or 2 is characterized in that, the note in the mobile phone memory is read mobile phone EMS memory after, all short message contents are kept in the same file, this moment described search, may further comprise the steps:
A: after opening file, read byte stream, search the short message content that satisfies querying condition, obtain the recording mechanism of the short message content that satisfies querying condition and these short message contents are kept in the cache file;
B: when the user re-enters querying condition, in cache file, read byte stream, search the short message content that satisfies new querying condition, obtain the recording mechanism of the short message content that satisfies new querying condition and preserve these short message contents, repeat aforementioned operation extremely to meeting consumers' demand to cache file.
7, the method for claim 1 is characterized in that, described mobile phone memory is the volatibility or the nonvolatile memory that can be read by mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101525350A CN100574340C (en) | 2007-09-27 | 2007-09-27 | A kind of method of searching SMS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101525350A CN100574340C (en) | 2007-09-27 | 2007-09-27 | A kind of method of searching SMS |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101127990A CN101127990A (en) | 2008-02-20 |
CN100574340C true CN100574340C (en) | 2009-12-23 |
Family
ID=39095877
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2007101525350A Active CN100574340C (en) | 2007-09-27 | 2007-09-27 | A kind of method of searching SMS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100574340C (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105354284A (en) * | 2015-10-30 | 2016-02-24 | 小米科技有限责任公司 | Template processing method and apparatus and short message identification method and apparatus |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101645079A (en) * | 2009-05-18 | 2010-02-10 | 上海闻泰电子科技有限公司 | Method for searching short message according to short message information |
CN101764883A (en) * | 2009-11-25 | 2010-06-30 | 青岛海信移动通信技术股份有限公司 | Recipient information input method of mobile terminal and system thereof |
CN102184247A (en) * | 2011-05-19 | 2011-09-14 | 重庆国虹科技发展有限公司 | High-efficiency short message querying and filtering method |
CN105373286B (en) * | 2014-08-29 | 2019-01-18 | 阿里巴巴集团控股有限公司 | message display method and device |
CN105959470A (en) * | 2016-04-27 | 2016-09-21 | 乐视控股(北京)有限公司 | Information storing method and terminal |
CN106126599A (en) * | 2016-06-20 | 2016-11-16 | 北京小米移动软件有限公司 | Querying method, inquiry unit and mobile terminal |
-
2007
- 2007-09-27 CN CNB2007101525350A patent/CN100574340C/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105354284A (en) * | 2015-10-30 | 2016-02-24 | 小米科技有限责任公司 | Template processing method and apparatus and short message identification method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN101127990A (en) | 2008-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100574340C (en) | A kind of method of searching SMS | |
CN102841736A (en) | Handheld electronic device and method for accessing bookmark | |
CN104462141B (en) | Method, system and the storage engines device of a kind of data storage and inquiry | |
CN102023991A (en) | Method and device for updating indexes on terminal and sorting search results on the basis of updated indexes | |
CN101576929B (en) | Fast vocabulary entry prompting realization method | |
CN104636477B (en) | The De-weight method of push list before a kind of information push | |
CN103778124A (en) | Tree structure query method and device | |
CN101631398A (en) | Mobile terminal electronic-book management system and mobile terminal electronic-book management method | |
CN104035993A (en) | Memory search method for e-books, e-book management system and reading system | |
CN102486775A (en) | Method and device for querying business data | |
CN103428341B (en) | Method and device for searching for mobile phone contacts | |
CN101944117B (en) | Sorting and searching method and system based on database | |
CN101998692A (en) | Method and device for establishing index and carrying out mixed searching on mobile terminal | |
CN103493047A (en) | Dictionary database update device, input system, input method, and terminal | |
CN100419762C (en) | Freely-inputted wireless short message matching and search engine information processing method, and apparatus therefor | |
CN101777067B (en) | System for recognizing and managing web page contents for mobile communication equipment terminals | |
CN102646136B (en) | Method and system for efficiently storing and inquiring data | |
CN102970401A (en) | Method and device for recoding contact information | |
CN115809248B (en) | Data query method and device and storage medium | |
CN102567121B (en) | Realize the method and apparatus of converged communication | |
CN102238271B (en) | Multimedia message storing method and mobile phone | |
CN101673172A (en) | Data synergism method and mobile communication terminal | |
CN102917341A (en) | Mobile phone and method for storing and locating attribution information of mobile phone number | |
CN101621577B (en) | Short message processing method and short message processing terminal | |
CN101706789A (en) | Search method and search system |
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 |