Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of localization method of application program, is intended to solve the locator meams imperfection of the application program that prior art provides, and hommization is low, the problem of making troubles to user's operation.
The embodiment of the invention is achieved in that a kind of localization method of application program, and described method comprises the steps:
Receive and resolve the search locator key word of user's face input, obtain the corresponding index level of described search locator key word, described index level comprises one-level index and secondary index; Described secondary index comprises first order index and second level index, and wherein, described first order index is application name, and second level index is that the son of application program is used page action-item data;
Judge the corresponding index level of described search locator key word;
When the corresponding index level of described search locator key word was secondary index, the first order index in the described index level was searched for coupling as key word in the application name of pre-save, and shows the application name that search matches;
Receive the selection of the application program that the user matches search, and start the application program of selecting;
Described second level index information is sent to the application program of startup, and control described application program and enter the corresponding application program of described second level index.
Another purpose of the embodiment of the invention is to provide a kind of positioning system of application program, and described system comprises:
The key word receiver module is used for receiving the search locator key word that the user inputs;
The index level acquisition module is used for resolving the search locator key word of user's input that described key word receiver module receives, and obtains the corresponding index level of described search locator key word, and described index level comprises one-level index and secondary index; Described secondary index comprises first order index and second level index, and wherein, described first order index is application name, and second level index is that the son of application program is used page action-item data;
Judge module is used for judging the corresponding index level of search locator key word that described index level acquisition module obtains;
The coupling display module, be used for when described judge module judges that the corresponding index level of described search locator key word is secondary index, first order index in the described index level is searched for coupling as key word in the application name of pre-save, and shows the application name that search matches;
The application program launching module be used for to receive the selection of the application program that the user matches described coupling display module search, and starts the application program of selecting; And
The first control module, be used for when the corresponding index level of described search locator key word is secondary index, described second level index information is sent to the application program of startup, and control described application program and enter the corresponding application program of described second level index.
The embodiment of the invention is by resolving the search locator key word of user's input, judge the corresponding index level of search locator key word of user's input, realize the application program of fast search localisation of mobile terminals, save the time loss of user when the page switches, embody the characteristics of hommization, be user-friendly to.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, by the search locator key word of user's input is resolved, judge the corresponding index level of search locator key word of user's input, realize the application program of fast search localisation of mobile terminals.
Fig. 1 shows the realization flow of the localization method of the application program that the embodiment of the invention provides, and its concrete step is as described below:
In step S101, receive and resolve the search locator key word of user's input, obtain the corresponding index level of described search locator key word, described index level comprises one-level index and secondary index.
In embodiments of the present invention, the input of above-mentioned search locator key word can be by inputting at pre-configured application program search interface, this application program search interface is the corresponding input editing of the localization method software interface of the application program that the embodiment of the invention provides, a menu or button can be set separately, being present in interface of mobile terminal or portable terminal arranges in the option, do not repeat them here, similar with common application program, but not in order to limit the present invention.
The corresponding index level of above-mentioned search locator key word can comprise one-level index and secondary index, the judgement of above-mentioned secondary index is judges whether the corresponding index level of search locator key word comprises first order index and second level index, when the search locator key word of user's input comprises separator, can judge that the corresponding index level of this search locator key word is secondary index; When the search locator key word of user's input does not comprise separator, can judge that the corresponding index level of this search locator key word is the one-level index, namely the single-stage element draws.Wherein, secondary index comprises first order index and second level index, wherein, first order element draws and is that application name, second level index are that the son of application program is used page action-item data, and, second level index can continue to comprise the interface that a plurality of sons are used, when also having more separator in the index of the second level, can continue to determine whether multiple index according to separator, the judgment mode of its concrete process first order index as described above and second level index.
In embodiments of the present invention, above-mentioned index level separator is by preassigned, and this can be "+", " " etc., and can certainly specify other characters or non-character is separator, at this not in order to limit the present invention; For example the search locator key word of user's input is " arranging+backlight ", then in this search locator key word separator "+" is arranged, the search locator key word that then represents this input is secondary index, and first order index is " setting ", and second level index is " backlight "; And if the search locator key word of input be " setting+" or "+backlight " or " setting " or "+", then all is the one-level index.
As example of the present invention, the search locator key word of user's input is " setting+", judges that at first this search locator key word is not empty, judges that more whether the key word of this input is greater than a character.If the search location that first order index then carried out in character, greater than a character, second character " put " and is not separator owing to " setting+", the 3rd character " " is separator, therefore, " setting " is first order index, and "+" is second level index.
In embodiments of the present invention, the foundation of resolving the search locator key word of user's input is to judge whether to have separator (comprising the space) in the key word, if then the corresponding index of this search locator key word is secondary index; Then be the one-level index if not.
In step S102, judge the corresponding index level of described search locator key word, if secondary index, execution in step S103 then, otherwise execution in step S106.
In step S103, when the corresponding index level of described search locator key word is secondary index, first order index in the described index level is searched for coupling as key word in the application name of pre-save, and shows the application name that search matches.
In embodiments of the present invention, pre-save application name and son thereof are used page action-item data, and set up corresponding related with application program and its son application application name and son application page action-item data thereof respectively, wherein, the search locator key word of user's input can be included in described application name and son is used page action-item data, it also can be the functional overview to this application program, key word such as user's input is reading, then can (read a book the application name with read function such as panda, superstar reader etc.) show for user selection, certainly, described key word also can to use page action-item data in full accord with described application name or son.Wherein the search locator key word of user's input can be used as first order index, it is application name, also can be used as second level index, namely son is used page action-item data, can judge according to the classification of the search locator key word of this user's input at this.
In embodiments of the present invention, when the corresponding index level of search locator key word is secondary index, at first take first order index as key word, in the application name of pre-save, search for coupling, and the screen display of the application name that search is matched by portable terminal out, when a plurality of application program is arranged, show in the mode of tabulating; When search does not match application program, do not show that perhaps prompting user search matches, also can continue the search location by prompting user, do not repeat them here, but not in order to limit the present invention.
In step S104, receive the selection of the application program that the user matches search, and start the application program of selecting.
In embodiments of the present invention, the user selects in the application program that is presented on the screen, and after the user clicked selection, then control started this application program.
In step S105, described second level index information is sent to the application program of startup, and control described application program and enter the corresponding application program of described second level index.
In embodiments of the present invention, when starting the application program of selecting, second level index information is sent to the application program of startup, application program can directly jump to the page corresponding to described second level index information according to this second level index information, wherein, this second level index information is second keyword message that passes through the separator interval of user's input.
In step S106, when the corresponding index level of described search locator key word is the one-level index, in the described application name of preserving and son application page action-item data thereof, mate, show that searching for the application name or the son that match uses the page.
In embodiments of the present invention, when the corresponding index level of search locator key word of user's input is the one-level index, then need to mate application name and sub the application in the page action-item data thereof of pre-save, show the application program application page that search matches, enter for user selection.
Wherein, search locator key word take user's input describes as " arranging+arrange " as example, by the given performing step of said method embodiment, can judge that this search locator key word is secondary index, first order index is " setting ", second level index also is " setting ", therefore, application name and sub the application in the page action-item data thereof at pre-save are mated, and draw a matching result tree figure as shown in Figure 2, among the figure, the user can click " sight setting ", then carry out " contextual model " corresponding application interface, only be a specific embodiment of the present invention herein, but not in order to limit the present invention.
In embodiments of the present invention, by the search locator key word of user's input is resolved, judge the corresponding index level of search locator key word of user's input, realize the application program of fast search localisation of mobile terminals, save the time loss of user when the page switches.
Fig. 3 shows the structured flowchart of the positioning system of the application program that the embodiment of the invention provides, for convenience of explanation, only provided the part relevant with the embodiment of the invention among the figure, wherein, the positioning system of application program can be built in software unit, hardware cell or the software and hardware combining unit of portable terminal.
Search interface configuration module 11 pre-configured application program search interfaces, described application program search interface is in order to input the search locator key word of application program; Set in advance module 12 pre-save application names and son application page action-item data thereof, and set up corresponding related with application program and its son application application name and son application page action-item data thereof respectively.
Key word receiver module 13 receives the user at the search locator key word of pre-configured application program search interface input; The user that the described key word receiver module 13 of index level acquisition module 14 parsings receives is at the search locator key word of pre-configured application program search interface input, obtain the corresponding index level of described search locator key word, described index level comprises one-level index and secondary index; Judge module 15 is judged the corresponding index level of search locator key word that described index level acquisition module 14 obtains, and judges that namely the corresponding index level of search locator key word is one-level index or secondary index; When described judge module 15 judges that the corresponding index level of described search locator key word is secondary index, the first order index of coupling display module 16 in the described index level searched for coupling as key word in the application name of pre-save, and shows the application name that search matches; Application program launching module 17 receives the user described coupling display module 16 is searched for the selection of the application program that matches, and starts the application program of selecting; When the first control module 18 is secondary index when the corresponding index level of described search locator key word, described second level index information is sent to the application program of startup, and control described application program and enter the corresponding application program of described second level index; When described judge module 15 judges that the corresponding index level of described search locator key word is the one-level index, the second control module 19 is mated in the described application name of preserving and son application page action-item data thereof, shows that searching for the application program or the son that match uses the page.
Above-mentioned only is a system embodiment of the present invention, and wherein, the functional description of each module such as above-mentioned embodiment of the method are described in the system embodiment, do not repeat them here, but not in order to limit the present invention.
In embodiments of the present invention, receive and resolve the user at the search locator key word of pre-configured application program search interface input, obtain the corresponding index level of described search locator key word, described index level comprises one-level index and secondary index; Judge the corresponding index level of described search locator key word; When the corresponding index level of described search locator key word was secondary index, the first order index in the described index level was searched for coupling as key word in the application name of pre-save, and shows the application name that search matches; Receive the selection of the application program that the user matches search, and start the application program of selecting; Described second level index information is sent to the application program of startup, and control described application program and enter the corresponding application program of described second level index, realize the application program of fast search localisation of mobile terminals, save the time loss of user when the page switches, embody the characteristics of hommization, be user-friendly to.
One of ordinary skill in the art will appreciate that all or part of step that realizes in above-described embodiment method is to come the relevant hardware of instruction to finish by program, described program can be in being stored in a computer read/write memory medium, described storage medium is such as ROM/RAM, disk, CD etc.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.