1. Technical Field
The present disclosure relates to an electronic device and a screen unlocking method thereof.
2. Description of Related Art
Electronic devices with touch screens, mobile phones, digital photo frames, electronic readers (e-reader), for example, are popular. To aviod operating the touch screen unintentionly, the touch screen is locked when not in use, and an unlocking procedure such as entering a code or password is needed for unlocking the touch screen. However, the conventional unlocking methods have drawbacks. For example, the unlocking password is difficult to memorize, the unchangeable unlocking method is tedious and boring, which cannot satisfy the demands of various users.
Therefore, what is needed is an electronic device and a screen unlocking method thereof to alleviate the limitations described above.
The components 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 sections throughout the several views.
The electronic device 100 includes a storage unit 10, a touch screen 20, a processor 30, and a physical key 40. The processor 30 includes a determining module 31, an unlocking module 32, a display control module 33, and a setting module 34. When the physical key 40 is depressed, a trigger signal for activating the unlocking process is generated and is transmitted to the processor 30. The processor 30 wakes up or locks the electronic device 100 according to the trigger signal. The display control module 33 controls the touch screen 20 to display an unlocking interface. In an embodiment, for example, referring to
The setting module 34 is configured for generating setting signals in response to setting touch operations applied on the touch screen 20. For example, the setting touch operations for setting the number of unlocking regions, the touch time period, and/or the touch area for unlocking the touch screen 20.
The storage unit 10 stores a predetermined touch time period and a predetermined touch area. The predetermined touch time period and the predetermined touch area are predefined by the user or default of the system of the electronic device 100, for unlocking the touch screen 20. When being locked, the touch screen 20 can generate unlocking signals in response to the unlocking operation. The determining module 31 is configured for determining whether the enduring touch time period of the unlocking operation applied on the touch screen 20 reaches the predetermined touch time period, and whether the touch area of the unlocking operation reaches the predetermined touch area, according to the unlocking signals generated by the touch screen 20.
In a first embodiment, the touch area is the total touch area of the touch operation synchronously applied on the touch screen 20. For example, when the unlocking interface displayed on the touch screen 20 is shown as
In a second embodiment, the storage unit 10 also stores coordinate(s) of one or more predefined unlocking region. For example, when the unlocking interface displayed on the touch screen 20 is shown as
In a third embodiment, the number of predefined unlocking region stored in storage unit 10 is less than the number of the unlocking icons 210 displayed on the touch screen 20, and each of the unlocking region associated with one of the unlocking icons 210. An unlocking region associated with an unlocking icon 210 means the unlocking icon 210 overlaps the unlocking region. For example, presuming the number of the predefined unlocking region is three, the predetermined touch time period is two seconds, and the predetermined touch area is three square centimeters, the unlocking interface displayed on the touch screen 20 is shown as
In a fourth embodiment, each of the unlocking regions is not associated with a particular unlocking icon. That is, no unlocking icon is displayed such as shown in
In a fifth embodiment, the storage unit 10 stores a predetermined range of the touch time period and a predetermined range of the touch area predefined by the user or defaults of the system of the electronic device 100, for unlocking the touch screen 20. For example, the predetermined range of the touch time period can be 2-3 seconds, and the predetermined range of the touch area can be 2-3 square centimeters. When the enduring touch time period of an unlocking operation falls in the predetermined range of the touch time period, and the touch area of the unlocking operation falls in the predetermined range of the touch area, the touch screen 20 will be unlocked.
The display control module 33 is configured for controlling the touch screen 20 to display a user interface after the touch screen 20 is unlocked by the unlocking module 32. In an embodiment, the display control module 33 also controls the touch screen 20 to display a prompt box for prompting the user that the unlocking process fails, when the unlocking module 32 does not unlock the touch screen 20 because of a false unlocking operation.
As such, in one embodiment, when the touch screen 20 is locked, the determining module 31 determines one or more finger(s) touches the region(s) of the unlocking icon(s) or any position of the touch screen 20. If the enduring touch time period reaches the predetermined touch time period, and the touch area reaches the predetermined touch area, the unlocking module 32 unlocks the touch screen 20. In another embodiment, when the determining module 31 determines the number of the unlocking icon(s) touched by the user is equal to the predetermined number of the unlocking icon(s), the unlocking module 32 unlocks the touch screen 20. In an alternative embodiment, when the touch screen 20 is locked, and the determining module 31 determines the enduring touch time period of an unlocking operation falls in the predetermined range of the touch time period, and the touch area of the unlocking operation falls in the predetermined range of the touch area, the unlocking module 32 unlocks the touch screen 20.
In step S21, the display control module 33 controls the touch screen 20 to display an unlocking interface when the trigger signal for activating the unlocking process generated by the physical key 40 is received. One or more unlocking icon(s) and an unlocking prompt box are displayed on the unlocking interface. In an alternative embodiment, the unlocking interface does not include the unlocking prompt box.
In step S22, the touch screen 20 generates unlocking signals in response to an unlocking operation applied on the touch screen 20.
In step S23, the determining module 31 determines whether the enduring touch time period of the unlocking operation reaches the predetermined touch time period, and whether the touch area of the unlocking operation reaches the predetermined touch area, according to the unlocking signals. If both yes, the process goes to step S24, otherwise, the unlocking module 32 continues to keep locking the touch screen 20, the process goes back to the step S22. In an embodiment, the determining module 31 also determines whether the unlocking operation is applied within the predetermined unlocking region. When the unlocking operation is applied within the predetermined unlocking region, the enduring touch time period of the unlocking operation reaches the predetermined touch time period. In addition, the touch area of the unlocking operation reaches the predetermined touch area, the process goes to step S24, otherwise, as long as one of the conditions is not satisfied, the unlocking module 32 continues to keep the touch screen 20 locked, the process goes back to the step S22. In an alternative embodiment, the determining module 31 determines whether the endured touch time period of an unlocking operation falls in the predetermined range of the touch time period. Whether the touch area of the unlocking operation falls in the predetermined range of the touch area, if both yes, the process goes to step S24, otherwise, the unlocking module 32 continues to keep the touch screen 20 locked, the process goes back to the step S22.
In step S24, the unlocking module 32 unlocks the touch screen 20.
In step S25, the display control module 33 controls the touch screen 20 to display a user interface.
With such a configuration, when the unlocking interface is displayed on the touch screen 20 in response to the operation of the user, the touch screen 20 can easily be unlock by touching the unlocking icons displayed on the unlocking interface or touching any position of the touch screen 20 for a predetermined time period and a predetermined area.
Although the present disclosure has been specifically described on the basis of the embodiments thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiments without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201110423695.0 | Dec 2011 | CN | national |