1. Field of the Invention
The present invention relates to electronic devices having touch screens, and particularly to an electronic device having a touch screen locking function and a touch screen locking method thereof.
2. Description of Related Art
Nowadays, touch screens are widely used in electronic devices, such as cellular phones. Although useful, touch screens are prone to misoperation due to inadvertent contact with, for example, a user's ear during phone calls. What is needed is to provide an electronic device with extra touch screen locking functions for the touch screen thereof.
Referring to
The primary locking module 32 is used for storing a primary locking program. Operation of the primary locking button 40 causes the CPU 10 to instruct the primary locking module 32 to activate the primary locking program, and then the touch screen 20 switches between the unlocked status and locked status. When the touch screen 20 is locked, it cannot be operated. When the touch screen 20 is unlocked, it can be operated. During certain operations, for example during a phone call, the touch screen 20 is forced into unlocked status and operating the primary locking button 40 cannot lock the touch screen 20.
The secondary locking module 34 is used for storing a secondary locking program. Operation of the secondary locking button 50 causes the CPU 10 to instruct the secondary locking module 34 to activate the secondary locking program, and then the touch screen 20 is changed from the unlocked status to the locked status. During the certain operations, for example during a phone call, the touch screen 20 can be locked by operating the secondary locking button 50.
In this embodiment, the primary locking button 40 and the secondary locking button 50 are buttons arranged on the electronic device 100 in addition to keys of a keypad, but in other embodiments, functions of one or both of the locking buttons 40, 50 may be accomplished through use of keys of a keypad.
Referring also to
S1: The CPU 10 judges whether the touch screen 20 of the electronic device 100 is in a forced unlocked status. If no, repeat S1, if yes go to S2.
S2: The CPU 10 judges whether the secondary locking button 50 is operated. If no, go to S1, if yes go to S3.
S3: The CPU 10 instructs the secondary locking module 32 to activate the secondary locking program to lock the touch screen 20.
S4: When condition that caused forced unlocked status ends, the electronic device 100 reverts to status previous to S1.
For example, when the touch screen 20 of the electronic device 100, such as a cellular phone, is locked by operating the primary locking button 40, if the phone is performing a function when a phone call comes in, the touch screen 20 is forced into unlocked status and operating the primary locking button 40 cannot lock the touch screen 20. As a result, a user can operate the touch screen 20 during the phone call, and a misoperation may be caused to the touch screen 20 by the user's ear or finger or other things. At this time, the user can operate the secondary locking button 50 to lock the touch screen 20, and therefore preventing misoperation of the touch screen 20 effectively.
It is to be understood, however, that even though numerous characteristics and advantages of the present invention have been set forth in the foregoing description, together with details of the structure and function of the invention, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
200810302227.6 | Jun 2008 | CN | national |