Embodiment
Embodiment one:
The embodiment of the invention one provides a kind of searching method of resource file, comprising:
Receive key word;
According to described key word, in the index file of setting up in advance, search the resource file information of coupling, to determine the resource file of coupling; Described index file comprises a plurality of resource file information.
The embodiment of the invention one is by searching the resource file information with keyword matching in the index file of setting up in advance, determine the resource file of coupling, because index file can comprise a plurality of resource file information, so a plurality of resource files that can disposable definite coupling, need in different application programs, repeatedly not search for, to save system resource.
Embodiment two:
Consult Fig. 1, the embodiment of the invention two provides a kind of resource file searching method, and this method comprises:
A1, portable terminal receive the key word of user's input.
The filename that A2, portable terminal are judged in advance each resource file in the index file of setting up respectively whether with keyword matching, if confirm corresponding resource file and keyword matching.
Before this step, need set up index file in advance, the concrete mode of setting up can be: the resource file on the searching storage; The information of the resource file that searches is registered in the index file, to set up index file.Resource file information comprises in the embodiment of the invention one: the filename of resource file.The filename of the resource file that searches like this can be a plurality of, and the filename of each resource file that mobile terminal system will search all stores in the index file, determines the resource file of coupling according to key word for system.
So far, finished the search to resource file, the subsequent descriptions portable terminal manages resource file under user's control.
A3, portable terminal obtain the display message of the resource file of coupling, the display message of showing resource file, and the display message correspondence of this resource file the application link of resource file, so that follow-uply under user control resource file is directly managed.
The mode of the display message of portable terminal showing resource file can be in this step: the display message of the mode showing resource file by tabulation.Explanation gives an actual example, user entered keyword " flowing water ", portable terminal is determined to comprise picture file, audio file and video file with the resource file of " flowing water " coupling, then show three parent table items on the interface, be respectively picture, Voice ﹠ Video, comprise sublist item separately in these three parent table items respectively, such as, suppose that the file name of determining 3 picture files comprises " flowing water ", then the sublist item in the picture list item is 3 picture name that comprise flowing water.
A4, portable terminal receive the supervisory instruction that the user triggers; The resource file that this supervisory instruction is selected at the user, this supervisory instruction can be to edit, duplicate, delete, move and instruction such as transmission.
The resource file that A5, portable terminal are selected described user carries out corresponding management.
Illustrate, the user selectes one or several resource files as the sublist item, and portable terminal receives user's delete instruction, with the corresponding resource file deletion of storing on the storer; The user also can select certain parent table item, manages, and this moment, system can carry out corresponding management to all the sublist items below this parent table item, so that the resource file that the unified management of user is associated.
The embodiment of the invention two is by searching the filename with the resource file of keyword matching in the index file of setting up in advance, determine the resource file of coupling, because index file can comprise a plurality of resource file information, so a plurality of resource files that can disposable definite coupling, need in different application programs, repeatedly not search for, to save system resource.Further,, know and the resource file of keyword matching, do not need the user in each application program, all to import key word and search, improve user experience for the user by showing the display message of the resource file that mates.Further, receive user's supervisory instruction, and a plurality of resource files that the user selectes are handled accordingly, a plurality of resource files are carried out unified management to make things convenient for the user.
Embodiment three:
Consult Fig. 2, the embodiment of the invention three provides a kind of searching method of resource file, this embodiment three is the key word in the territory in key word and the resource file information is mated with the difference of embodiment two, this method is applicable to the nonsensical resource file of matching files name (being that filename is the resource file that system distributes automatically), and this method comprises:
B1, portable terminal receive the key word of user's input.
B2, portable terminal judge whether the key word in the territory in key word and the resource file information mates, if confirm this resource file and keyword matching.
Before this step, need set up index file in advance, the concrete mode of setting up can be: the resource file on the searching storage; The information of the resource file that searches is registered in the index file, to set up index file.Resource file information comprises in the embodiment of the invention two: the key word in each territory of resource file.
Portable terminal need carry out the key word in the territory in key word and the index file other contrast of byte level in this step, to confirm whether mate.
This embodiment two is applicable to note file, multimedia message files, network push message PUSH message file, telephone directory information file, MSN chat record file.Concrete, the note file comprises territories such as content of text, timestamp, telephone number; Wherein, the key word in content of text territory can be one or several key wordses in the text content; The key word in timestamp territory can be the transmission or the time of reception of this note file; The key word of telephone number field is this telephone number content; Multimedia message files comprises territories such as content of text, picture name and audio frequency title; Wherein, the key word in content of text territory can be one or several key wordses in the text content; The key word in picture name territory is the picture name; The key word of audio frequency title-domain is the audio frequency name; Comprise in certain contact person's the telephone directory information file: territories such as name of contact person, number, company and home address; Wherein, the key word in name of contact person territory, number field, company territory and home address territory is respectively name of contact person, number, company and home address content.Comprise in the PUSH message: territories such as text message, start point address/destination address (OA/DA), URL (uniform resource locator, UniformResource Locator) link, theme.Wherein, start point address/destination address, URL territory and subject area are respectively concrete start point address/destination address contents, URL content and subject content.
Suppose that the user imports " Zhang San ",, determine that then this contact person's telephone directory information file is a matching files if in the key word in the territory of telephone directory information file, find " Zhang San "; If have in the key word in the territory of multimedia message files " Zhang San ", confirm that then this multimedia message files is a matching files;
The key word that can not only comprise the territory in the resource file information, the classification that can also comprise the territory, suppose that the user imports " Zhang San ", system can determine earlier that " Zhang San " may match the content of text territory, search " Zhang San " in the key word in the pairing territory, content of text territory in the note file again, with confirm this note file whether with keyword matching.
If system can not directly mate the key word in the territory of " Zhang San " and note file, then call the phone directory program, obtain the telephone number of " Zhang San ", mate with the key word in the territory of note file, whether mate to confirm this note file.
Perhaps, portable terminal receives key word at every turn, just call the phone directory program, search the telephone number that whether has this key word correspondence, if, then with this telephone number also as key word, mate with the key word in territory in the resource file information, as long as the key word in territory and portable terminal receive in the resource file key word or telephone number matches are then confirmed this resource file and keyword matching.
B3, portable terminal obtain the display message of the resource file of coupling, the display message of showing resource file, and the display message correspondence of this resource file the application link of resource file, so that follow-uply under user control resource file is directly managed.
Illustrate, for the note file, can edit, duplicate, deletion, dialing numbers, extraction number, extract operation such as short message content.
B4-B5 is identical with A4-A5.
The embodiment of the invention three is by searching the key word with the territory of the resource file of keyword matching in the index file of setting up in advance, determine the resource file of coupling, because index file can comprise a plurality of resource file information, so a plurality of resource files that can disposable definite coupling, need in different application programs, repeatedly not search for, to save system resource.Further,, know and the resource file of keyword matching, do not need the user in each application program, all to import key word and search, improve user experience for the user by showing the display message of the resource file that mates.Further, receive user's supervisory instruction, and a plurality of resource files that the user selectes are handled accordingly, a plurality of resource files are carried out unified management to make things convenient for the user.
Embodiment four:
Consult Fig. 3, the embodiment of the invention four provides a kind of searching method of resource file, the difference of this method and the foregoing description is, for texts such as web page files, Web page bookmark file and mail documents, judge that earlier whether key word mates with the filename of resource file, if not, judge whether again and the keyword matching in territory that this method comprises:
C1, portable terminal receive the key word of user's input.
The filename that C2, portable terminal are judged the resource file in the index file whether with keyword matching; If the filename and the keyword matching of resource file are carried out C3; If the filename and the key word of this resource file do not match, carry out C4.
Before this step, need set up index file in advance, the concrete mode of setting up can be: the resource file on the searching storage; The information of the resource file that searches is registered in the index file, to set up index file.Resource file information comprises in the embodiment of the invention three: the filename of resource file and the key word in territory.
C3, confirm this resource file and keyword matching, carry out C5.
C4, judge whether the key word in the territory in this key word and this resource file information mates, if confirm this resource file and described keyword matching.
C5-C7 is identical with A3-A5.
The filename that the embodiment of the invention four is judged resource file whether with keyword matching, for the filename of resource file and keyword matching, directly confirm this resource file and keyword matching, if the filename of resource file and key word do not match, continuation judges whether the key word in the territory of key word and this resource file mates, to determine the resource file of coupling, a plurality of resource files that can disposable definite coupling, need in different application programs, repeatedly not search for, to save system resource.Further,, know and the resource file of keyword matching, do not need the user in each application program, all to import key word and search, improve user experience for the user by showing the display message of the resource file that mates.Further, receive user's supervisory instruction, and a plurality of resource files that the user selectes are handled accordingly, a plurality of resource files are carried out unified management to make things convenient for the user.
Embodiment five:
The embodiment of the invention five provides a kind of searching method of resource file, and the difference of this method and the foregoing description is, the key word that portable terminal received from its portable terminal of sharing, this method specifically comprises:
D1, portable terminal receive the key word of the portable terminal transmission of sharing.
D2 is identical with A2, B2 or C2-C4;
The display message that D3, portable terminal obtain the resource file of coupling sends to shared portable terminal.
The display message of D4, shared portable terminal showing resource file, receive the supervisory instruction that the user triggers (this supervisory instruction is the resource file selected at the user) after, the resource file of selecting to the mobile terminal request user.
D5, portable terminal are to sending the resource file that mates with its portable terminal of sharing.
D6, shared portable terminal are according to supervisory instruction, and the resource file that the user is selected carries out corresponding management.
Embodiment of the invention five-way is crossed the resource file information of searching with keyword matching in the index file of setting up in advance, determine the resource file of coupling, because index file can comprise a plurality of resource file information, so a plurality of resource files that can disposable definite coupling, need in different application programs, repeatedly not search for, to save system resource.Further, can realize searching for each other and the management resource file between the shared portable terminal.
In the various embodiments described above, portable terminal can manage index file, specifically comprise: when new resource file stores on the storer, the information of new resource file (such as the key word in the territory of the filename of this resource file and/or resource file) is registered in the index file; When the resource file that is registered to index file changes, revise the information of this resource file of being preserved in the index file; When the resource file that is registered to index file is deleted, the information of this resource file of deletion from index file, by index file is managed, accurate to guarantee the resource file information in the index file.
Embodiment six:
Consult Fig. 4, the embodiment of the invention six provides a kind of portable terminal, and this terminal comprises:
Key word receiving element 601 is used to receive key word;
Matching unit 602 is used for according to described key word, searches the resource file information of coupling in the index file of setting up in advance, to determine the resource file of coupling; Described index file comprises a plurality of resource file information.
Wherein, the resource file information in the index file comprises: the filename of resource file, and/or the key word in the territory of resource file;
Described matching unit 602 comprises:
First matching unit, be used for judging respectively described index file each resource file filename whether with described keyword matching; With first determining unit, be used in the judged result of first matching unit confirming corresponding resource file and described keyword matching when being.
Described matching unit 602 can comprise:
Second matching unit is used for judging whether the key word in the territory of described key word and described resource file information mates; With second determining unit, be used for when the judged result of second matching unit when being, confirm described resource file and described keyword matching.
Described matching unit 602 comprises:
The number acquiring unit is used to call the phone directory program, obtains the telephone number of described key word correspondence; With the 3rd matching unit, be used for judging described telephone number whether with the keyword matching in the territory of described resource file information; With the 3rd determining unit, be used in the judged result of the 3rd matching unit confirming described resource file and described keyword matching when being.
Described matching unit 602 can comprise described first matching unit and first determining unit simultaneously; Second matching unit and second determining unit; These three groups of unit of number acquiring unit, the 3rd matching unit and the 3rd determining unit, perhaps wherein any two groups or one group of unit.
This portable terminal also comprises:
Index file is set up unit 603, is used for the resource file on the searching storage, and the information of the resource file that searches is registered in the index file;
Index file is preserved unit 604, is used to preserve described index file.
Registering unit 605 is used for when new resource file stores on the storer, and the information of new resource file is registered in the described index file;
Revise unit 606, be used for when the resource file that is registered to index file changes, revising the information of the described resource file in the described index file;
Delete cells 607 is used for when the resource file that is registered to index file is deleted, the information of the described resource file of deletion from described index file.
Wherein, the key word that described key word receiving element 601 is received is the key word that the user imports, and this portable terminal also comprises:
Display unit 608, the display message that is used to show described resource file.
Supervisory instruction receiving element 609 is used for the receiving management instruction; The resource file that described supervisory instruction is selected at the user;
Administrative unit 610, the resource file that is used for that described user is selected are carried out corresponding management.
Perhaps, the key word that described key word receiving element 601 is received is that the portable terminal shared sends, and this portable terminal also comprises: the display message transmitting element is used for sending to described shared portable terminal the display message of described resource file.The request instruction receiving element is used to receive the instruction of the resource file of described shared mobile terminal request coupling; The resource file transmitting element is used for sending instruction institute requested resource file to described shared portable terminal.
The embodiment of the invention six is by searching the resource file information with keyword matching in the index file of setting up in advance, determine the resource file of coupling, because index file can comprise a plurality of resource file information, so a plurality of resource files that can disposable definite coupling, need in different application programs, repeatedly not search for, to save system resource.
More than the searching method and the portable terminal of the resource file that the embodiment of the invention provided is described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.