Patent Publication Number: US-2013254720-A1

Title: Method and device for realizing shortcut in mobile terminal

Description:
TECHNICAL FIELD 
     The present disclosure relates to the field of communication technology, and in particular to a method and a device for realizing a shortcut in a mobile terminal. 
     BACKGROUND 
     As mobile terminal is popularly used serving as a communication terminal, the function of the mobile terminal becomes increasingly powerful. However, the complexity of operation is increasing too. Presently, the operation is simplified generally by enabling a fixed function through “shortcut key”, “push-to-talk” or a certain key. 
     However, no matter what method is adopted, on one hand, only several preset shortcuts provided by the terminal can be selected and a user can not edit a new shortcut; on the other hand, a certain key can only correspond to one shortcut operation and can not be reused. In this way, the number of shortcuts set by the user is limited by the number of keys of the mobile terminal. 
     SUMMARY 
     The main purpose of the disclosure is to provide a method and a device for realizing a shortcut in a mobile terminal, so that a user is not limited by the preset mode when selecting a shortcut, the user can edit a new shortcut and the number of shortcuts is not limited by the number of keys of the mobile terminal. 
     The present disclosure provides a method for customizing a shortcut in a mobile terminal, which includes the following steps: 
     providing an operation interface for a user to select to enter a customized shortcut setting process; 
     capturing each key pressing operation of the user and the time consumed by each key pressing operation in the process when the user enters the customized shortcut setting process; 
     recording and saving the key name and the corresponding operation time through a file with a unique path; 
     when the user clicks the file name of the shortcut, generating a key message according to the order of the key pressing operations and the corresponding operation time and completing the key pressing process automatically. 
     Preferably, the step of capturing each key pressing operation of the user and the time consumed by each key pressing operation in the process when the user enters the customized shortcut setting process may include: 
     after the user enters the customized shortcut setting process, when a communication service occurs to the mobile terminal, filtering the key pressing operation for the communication service. 
     Preferably, the step of recording and saving the key name and the corresponding operation time through a file with a unique path may includes: 
     after the recording is completed, adding, to the end of the record file, a file protection identifier and extending information for extending shortcut functions. 
     Preferably, before displaying a shortcut icon on the mobile terminal interface, the method may include: 
     deleting repeated or redundant key pressing operations in the customized shortcut setting process, so as to optimize the key pressing sequence. 
     Preferably, before displaying a shortcut icon on the mobile terminal interface, the method further may include: 
     determining whether the shortcut has enabled an optimization option; if so, optimizing the order of key pressing in the record file; otherwise, directly transmitting record file completed information, wherein the transmitted information includes the name of the record file. 
     The disclosure provides a device for customizing a shortcut in a mobile terminal, which includes: 
     a man-machine interaction module configured to provide an operation interface for a user to select to enter a customizing shortcut setting process; 
     a filtering module configured to capture, when the user enters the customizing shortcut setting process, each key pressing operation of the user and the time consumed by each key pressing operation in the process; 
     a recoding module configured to record and save the key name and the corresponding operation time through a file with a unique path; 
     a replay module configured to generate, when the user clicks the file name of the shortcut, a key message according to the order of the key pressing operations and the corresponding operation time and to complete the key pressing process automatically. 
     Preferably, the filtering module may be further configured to: 
     after the user enters the customized shortcut setting process, when a communication service occurs to the mobile terminal, filter the key pressing operation for the communication service. 
     Preferably, the recoding module may be further configured to: 
     after the recording is completed, add, to the end of the record file, a file protection identifier and extending information for extending shortcut functions. 
     Preferably, the device may further include: 
     an optimization module configured to delete repeated or redundant key pressing operations in the customized shortcut setting process, so as to optimize the key pressing sequence. 
     Preferably, the optimization module may be further configured to: 
     determine whether the shortcut has enabled an optimization option; if so, optimize the order of key pressing in the record file; otherwise, directly transmit record file completed information, wherein the transmitted information includes the name of the record file. 
     The method or the device provided by the disclosure enables a user to define a shortcut in a mobile terminal as needed by capturing and recording the key pressing operation process and the operation time in the mobile terminal, thereby improving the flexibility for setting the shortcut in the mobile terminal and enabling the operation of the mobile terminal more convenient and simple; moreover, the present disclosure does not need support of the operation system or other software, and is not limited to a certain type of mobile terminal; the present disclosure is applicable to any mobile terminal, with a wide application range and high compatibility. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         FIG. 1  shows a flowchart of a method for realizing a shortcut in a mobile terminal according to the present disclosure; 
         FIG. 2  shows a structure diagram of a device for realizing a shortcut in a mobile terminal according to the present disclosure; 
         FIG. 3  shows a workflow chart of a device for realizing a shortcut in a mobile terminal according to the present disclosure; 
         FIG. 4  shows a processing flowchart of an embodiment for executing a shortcut according to the present disclosure; and 
         FIG. 5  shows a diagram of an embodiment for interface conversion of a mobile terminal according to the present disclosure. 
     
    
    
     DETAILED DESCRIPTION 
     It should be appreciated that the specific embodiments described hereinafter are only used to explain the present disclosure instead of limiting the present disclosure. 
       FIG. 1  illustrates a process for customizing a shortcut in a mobile terminal in an implementation according to the present disclosure. As shown in  FIG. 1 , the process includes the following steps: 
     Step  110 : provide an operation interface for a user to select to enter a customized shortcut setting process. For example, in one embodiment, an icon for a customized shortcut may be preset, which is displayed on the user operation interface; when the user clicks the icon, the user enters the customized shortcut setting process and the operation interface jumps to an initial user interface for the user to perform setting. 
     Step  120 : when the user enters the customized shortcut setting process, each key pressing operation of the user and the time consumed by each key pressing operation in the process are captured. For example, after entering the customized shortcut setting process, the name of the key pressed by the user each time, the time of pressing, and the interface jump time of the mobile terminal after the key is pressed are captured. If there are several key operations, the operations will be sorted in a chronological order. 
     Step  130 : the key name and the corresponding operation time are recorded and saved through a file with a unique path. For example, the key name and the corresponding operation time are recorded through a program file with a unique file name, and when the user inputs a key for ending the customized shortcut setting process, the file recoding is ended. Meanwhile, the user is prompted to input a name of the shortcut, after the user inputs the name of the shortcut, the name of the shortcut and the name of the program file are associated and saved in the mobile terminal, so that the program file can execute an operation when the user clicks the name of the shortcut. There are several paths for saving; and the user can select one as needed, for example, the user can save the shortcut under the path of “shortcut setting” of the mobile terminal, or under other paths. If there are many shortcuts, a sorting format like an address list of a cell phone can be formed under the save path. 
     Step  140 : when the user clicks a file name of a shortcut, a key message according to the order of the key operations and the corresponding operation time is generated and the key pressing procedure completes automatically. 
     According to the implementation of the present disclosure, a user can define a shortcut in a mobile terminal as needed by capturing and recording the key operation and the operation time, thereby improving the flexibility for setting the shortcut in the mobile terminal and enabling the operation of the mobile terminal more convenient and simple. 
     In one embodiment, the above step  120  includes: after the user enters the customized shortcut setting process, if a communication service occurs, the key operation for the communication service is filtered. For example, if a situation such as an incoming call or an incoming message or clock alarming occurs when performing a customized shortcut setting process, the key pressing for processing these events performed by the user is filtered out and the key pressing information during this period will not be outputted. 
     In one embodiment, step  130  includes: after the recording is completed, adding, to the end of the recorded file, a file protection identifier and extending information for extending shortcut functions. For example, if the power is suddenly down when recording the path of the shortcut, an unexpected record file might be generated in this situation, then a special identifier is generated on the last line of the record file for the purpose of the following continuation. Moreover, extending information also can be added for the purpose of extending functions of the shortcut in future. 
     In one embodiment, step  130  further includes: in the customized shortcut setting process, repeated or redundant key pressing operations may be deleted, so as to optimize the key pressing sequence. For example, in the customized shortcut setting process, if the user presses a key irrelevant to the target item, for example, keys such as Up, Down, Left and Right, these key pressing operations and the key pressing time are deleted so as to save program and to enable the replay to be more convenient. 
     The optimization operation above can be enabled or disabled through the user interface, for example, an icon can be set on the user interface so as to enable or disable the optimization operation. The optimization procedure may include: determining whether the shortcut has enabled an optimization option; if so, optimizing the key pressing sequence in the record file; otherwise, directly transmitting record file completed information, wherein the information transmitted includes the name of the record file. 
     The present disclosure provides a device for customizing a shortcut in a mobile terminal, which can implement the method above. Referring to  FIG. 2 , the device includes: 
     a man-machine interaction module  210  configured to provide an operation interface for a user to select to enter a customized shortcut setting process. In one embodiment, the man-machine interaction module  210  can be a man-machine operation interface, and an icon for a customized shortcut may be preset, which is displayed on the man-machine operation interface; when the user clicks the icon, the user enters the customized shortcut setting process and the operation interface jumps to an initial user interface for the user to perform setting; 
     a filtering module  220  configured to capture, when the user enters the customized shortcut setting process, each key pressing operation of the user and the time consumed by each key pressing operation in the process. For example, after entering the customized shortcut setting process, the filtering module  220  can capture the name of the key pressed by the user each time, the time of pressing, and the interface jump time of the mobile terminal after the key is pressed, and then outputs parameters such as the key name and the corresponding time for operating the key. If there are several key operations, the operations will be sorted in a chronological order. 
     a recoding module  230  configured to record and save the key name and the corresponding operation time through a file with a unique path. For example, the recoding module  230  can record the key name and the corresponding operation time through a program file with a unique file name, and when the user inputs a key for ending the customized shortcut setting process, the file recording is ended. Meanwhile, the user is prompted to input a name of the shortcut, after the user inputs the name of the shortcut, the name of the shortcut and the name of the program file are associated and saved in the mobile terminal, so that the program file can execute an operation when the user clicks the name of the shortcut. There are several paths for saving; and the user can select one as needed, for example, the user can save the shortcut under the path of “shortcut setting” of the mobile terminal, or under other paths. If there are many shortcuts, a sorting format like an address list of a cell phone can be formed under the save path; 
     a replay module  240  configured to generate, when the user clicks a file name of a shortcut, a key message according to the order of the key operations and the corresponding operation time and to finish the key pressing procedure automatically. 
     In one embodiment, the filtering module  220  is further configured to: after the user enters the customized shortcut setting process, if a communication service occurs, filter the key operation for the communication service. For example, if a situation such as an incoming call or an incoming message or clock alarming occurs when performing a customized shortcut setting process, the filtering module  220  ignores the key pressing for processing for these events performed by the user and does not output the key pressing information during this period. 
     In one embodiment, the recording module  230  is further configured to: after the recording is completed, add, to the end of the recorded file, a file protection identifier and extending information for extending shortcut functions. For example, if the power is suddenly down when recording the path of the shortcut, an unexpected record file might be generated in this situation, then the recording module  230  generates a special identifier on the last line of the record file for the purpose of the following continuation. Moreover, extending information also can be added for the purpose of extending functions of the shortcut in future. 
     In one embodiment, the device above may further include: 
     an optimization module  250  configured to delete repeated or redundant key pressing operations in the customized shortcut setting process, so as to optimize the key pressing sequence. For example, in the customized shortcut setting process, if the user presses a key irrelevant to the target item, for example, keys such as Up, Down, Left and Right, the optimization module  250  deletes these key operations and the key time so as to save program and to enable the replay to be more convenient. 
     In one embodiment, the optimization module  250  can be further configured to: determine whether the shortcut has enabled an optimization option; if so, optimize the key pressing sequence in the record file; otherwise, directly transmit record file completed information, wherein the information transmitted includes the name of the record file. For example, when the recoding module  230  transmits record file saving completed information to the optimization module  250 , the optimization module  250  first determines whether the shortcut has enabled an optimization option, and if the optimization has not been enabled, then a record file optimization completed event is directly transmitted to the replay module  240 , wherein the information transmitted includes the name of the record file; if the optimization has been enabled, the optimization module  250  optimizes the key pressing sequence in the record file according to a local optimization algorithm (for example, deleting redundant or repeated keys) and transmits a record file optimization completed event to the replay module  240  after the optimization is completed. 
       FIG. 3  illustrates a process for editing a shortcut by the above device according to the present disclosure, and the process includes the following steps: 
     Step  301 : the man-machine interaction module  210  provides a shortcut setting interface; 
     Step  302 : when a user presses a start key, the man-machine interaction module  210  enters the customized shortcut setting process; 
     Step  303 : the man-machine interaction module  210  notifies the filtering module  220  that the man-machine interaction module  210  has entered the customized shortcut setting process; 
     Step  304 : the man-machine interaction module  210  notifies the recoding module  230  that the man-machine interaction module  210  has entered the customized shortcut setting process; 
     Step  305 : return to the man-machine interaction interface automatically; 
     Step  306 : the user presses a key; 
     Step  307 : the filtering module  220  captures and filters the key pressing; 
     Step  308 : the recoding module  230  records the key pressing information and the relative time of the key pressing; 
     Step  309 : the recording module  230  saves the key pressing information and the relative time of the key pressing in a file; 
     Step  310 : when the user presses a shortcut setting end key, the filtering module  220  stops capturing and filtering the key pressing; 
     Step  311 : the man-machine interaction module  210  prompts the user to input a name of the shortcut; 
     Step  312 : the user inputs the name of the shortcut; 
     Step  313 : the recoding module  230  stops recording; 
     Step  314 : the recoding module  230  adds information to the end of the file; 
     Step  315 : the recoding module  230  transmits file saving completed information; 
     Step  316 : the optimization module  250  optimizes the file; 
     Step  317 : the optimization module  250  transmits optimization completed information to the replay module  240 ; 
     Step  318 : the replay module  240  associates the file name with the shortcut; 
     Step  319 : the replay module  240  transmits file saving success information to the man-machine interaction module  210 ; 
     Step  320 : the man-machine interaction module  210  displays file saving success information. 
       FIG. 4  illustrates a flowchart for executing a shortcut in an embodiment of the above device according to the present disclosure. The process includes the following steps: 
     Step  401 : a user enters a shortcut setting interface. 
     Step  402 : the user selects a certain shortcut. 
     Step  403 : execute the shortcut. 
     Step  404 : the man-machine interface module transmits an event of executing the shortcut to the replay module. 
     Step  405 : the replay module finds the name of a record file according to the name information of the shortcut in the event. 
     Step  406 : the replay module reads the key information in the file. 
     Step  407 : according to the key pressing information and the relative time of the key pressing, the replay module generates key pressing information and transmits the information to a GUI system of the mobile terminal. 
     Step  408 : the GUI system of the mobile terminal distributes the key pressing message. 
     Repeat Step  406  and Step  407  until all key sequences are completed. 
       FIG. 5  illustrates a diagram of interface conversion of a mobile terminal during a customized shortcut setting process in an embodiment of the above device according to the present disclosure. 
     1. First, a user selects a shortcut setting function. As shown in  FIG. 4-1 , the interface includes Customized Shortcut Setting, Shortcut Option Setting and Help. The Shortcut Option Setting module provides a function that the current mobile terminal sets a shortcut, that is, the mobile terminal provides several defined shortcut options, and the user selects to set a shortcut according to the option. When the Help icon is clicked, the steps for the shortcut setting can be illustrated. 
     2. In  FIG. 4-1 , Customized Shortcut Setting is selected. 
     3. Select Set in  FIG. 4-2 , then the interface is as shown in  FIG. 4-3 , the optimization mode can be enabled or disabled, when the optimization mode is enabled, the key pressing sequence in the record file will be optimized. 
     4. Select New in  FIG. 4-2 , then the interface is as shown in  FIG. 4-4 ; select Start according to the prompt, then the interface automatically returns to the desktop and the shortcut setting is started; each key press of the user and the relative time of the key press are both recorded and sequentially saved in a file. During this procedure, an icon would appear in the title bar to prompt that the mobile terminal currently is in the customized shortcut setting process. 
     5. If the user intends to end the shortcut setting process, press a shortcut end key; then the interface is as shown in  FIG. 4-5 , and the user selects Finish Setting or Cancel Setting according to the prompt. The shortcut end key is a shortcut provided by the mobile terminal, and the user also can redefine a shortcut in the Shortcut Option Setting. 
     6. In  FIG. 4-5 , if Finish Setting is selected, prompt the user to input and save a name of the shortcut; if Cancel Setting is selected, directly delete the saved key record file. The icon prompt on the title bar disappears. 
     In future, when a user clicks the shortcut setting key and selects a certain shortcut, a series of operations will be completed. 
     The above are the preferred embodiments of the disclosure only and are not intended to limit the scope of the present disclosure. Any equivalent structures or equivalent flow modifications made according to the description and the accompanying drawings of the present disclosure, or any equivalent structures or equivalent flow modifications applied in other relevant technical fields directly or indirectly are deemed to be included in the scope of the present disclosure.