This application claims priority to Chinese Patent Application No. 201310294199.9 filed on Jul. 15, 2013 in the China Intellectual Property Office, the contents of which are incorporated by reference herein.
Embodiments of the present disclosure relate to applications management technology, and particularly to an electronic device and a method for invoking an application of the electronic device.
When an electronic device is locked, a display function and functions (e.g. touch or display functions of a display) of the electronic device may be disabled. If a user wants to invoke one application after the electronic device is locked, the user needs to press a preset keystroke (e.g. a home keystroke) or a combination of keystrokes of the electronic device for lighting a display of the electronic device. The user must further execute preset unlocking operations for unlocking the electronic device. After the electronic device is unlocked, the user can find and execute the application. The user cannot invoke the application directly when the electronic device is locked.
Implementations of the present disclosure will be described, by way of example only, with reference to the following drawings. The modules in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding portions throughout the views.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references can mean “at least one,” or “one or more.”
In the present disclosure, “module,” refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a program language. In one embodiment, the program language can be Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable media or storage medium. Non-limiting examples of a non-transitory computer-readable medium include CDs, DVDs, flash memory, and hard disk drives.
The at least one processor 11 executes one or more computerized codes and other applications of the electronic device 1 to provide functions of the application invoking system 10. The storage device 12 can be a memory of the electronic device 1 or an external storage card, such as a smart media card or a secure digital card. The display screen 13 can be a liquid crystal display (LCD) screen or a touch-sensitive screen.
In this embodiment, the application invoking system 10 includes, but is not limited to, a setting module 100, a detection module 101, a recording module 102, and an execution module 103. The modules 100-103 include computerized code in the form of one or more programs that are stored in the storage device 12. The computerized code includes instructions that are executed by the at least one processor 11 to provide functions of the application invoking system 10.
The setting module 100 presets a specified keystroke related to the specified application. The specified application can be any application of the electronic device which is frequently used by a user, such as a message service application, a phone service application, a game application, or a video player, for example.
In the embodiment, the specified keystroke has an original function. For example, the original function of the specified keystroke can be to display or exit an unlocking interface on the display screen 13 of the electronic device 1. In other embodiment, the electronic device can be locked or unlocked when the original function of the specified keystroke is executed, or a volume of the electronic device 1 can be adjusted when the original function of the specified keystroke is executed.
If the display screen 13 is a touch-sensitive screen and the specified keystroke is a virtual keystroke 132, the virtual keystroke 132 can be displayed on the display screen 13 after the electronic device 1 is locked. The displaying of the virtual keystroke 132 can be triggered by a preset touch operation on the display screen 13. The preset touch operation can be a click operation on the display screen 13, a sliding operation on the display screen 13, or multi-touch operations on the display screen 13.
The detection module 101 detects a first operation operated on the specified keystroke when the electronic device 1 is locked. For example, the detection module 101 detects a clicking operation or a pressing operation of the specified keystroke for the first time.
When the detection module 101 detects the first operation of the specified keystroke, the recording module 102 records operation time of the first operation operated of the specified keystroke.
The detection module 101 further determines whether the specified keystroke has been operated again in a predetermined time period (for example, 1 seconds) after the first operation of the specified keystroke. The predetermined time period can be preset according to a user's operation habit. In one embodiment, the detection module 101 can control a timer to start timing a duration after recording the operation time of the first operation.
When the duration does not reach the predetermined time period and once the specified keystroke is operated, the detection module 101 determines that the specified keystroke has been operated again in the predetermined time period. When the duration reaches the predetermined time period and the specified keystroke has not been operated, the detection module 101 determines that the specified keystroke has not been operated again in the predetermined time period. After determining whether the specified keystroke has been operated again in the predetermined time period, the recorded operation time and the timed duration are reset.
When the detection module 101 determines that the specified keystroke has been operated again in the predetermined time period, the execution module 103 unlocks the electronic device 1 and invokes the specified application to be executed.
When the detection module 101 determines that the specified keystroke has not been operated again in the predetermined time period, the execution module 103 executes the original function of the specified keystroke.
In other embodiments, if the original function includes at least two functions of the electronic device, the execution module 103 executes a corresponding function according to an state of the electronic device 1. For example, if the original function includes a first function of entering an unlocking interface and a second function of exiting the unlocking interface, the execution module 103 executes the first function if the electronic device 1 is in a locked state, or the execution module 103 executes the second function if the electronic device 1 displays the unlocking interface.
In block 301, the setting module presets a specified keystroke related to a specified application. The specified application can be any frequently used application of the electronic device. The specified keystroke can be a physical keystroke 130 of the electronic device 1 or can be a virtual keystroke 132 displayed on the display screen 13. The virtual keystroke 132 can be a virtual icon or a virtual button, for example.
In block 302, the detection module detects a first operation on the specified keystroke when the electronic device 1 is locked. For example, the detection module detects a clicking operation or a pressing operation on the specified keystroke for the first time. If the detection module detects the first operation of the specified keystroke, block 303 is implemented. If the detection module does not detect any operation of the specified keystroke, block 302 is repeated.
In block 303, the recording module records operation time of the first operation of the specified keystroke.
In block 304, the detection module determines whether the specified keystroke has been operated again in a predetermined time period after the first operation of the specified keystroke. In at least one embodiment, the detection module can control a timer to start timing a duration after recording the operation time of the first operation. When the duration does not reach the predetermined time period and once the specified keystroke is operated, the detection module determines that the specified keystroke has been operated again in the predetermined time period, and block 305 is implemented. When the duration reaches the predetermined time period and the specified keystroke has not been operated, the detection module determines that the specified keystroke has not been operated again in the predetermined time period, and block 306 is implemented.
In block 305, the execution module unlocks the electronic device 1 and invokes the specified application to be executed.
In block 306, the execution module executes the original function of the specified keystroke, and the procedure ends.
All of the processes described above can be embodied in, and fully automated via, functional code modules executed by one or more general purpose processors such as the processor 11. The code modules can be stored in any type of non-transitory readable medium or other storage device such as the storage device 12. Some or all of the methods can alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory readable medium can be a hard disk drive, a compact disc, a digital versatile disc, a tape drive, or other storage medium.
The described embodiments are merely examples of implementations, and have been set forth for a clear understanding of the principles of the present disclosure. Variations and modifications may be made without departing substantially from the spirit and principles of the present disclosure. All such modifications and variations are intended to be included within the scope of this disclosure and the described inventive embodiments, and the present disclosure is protected by the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
2013102941999 | Jul 2013 | CN | national |