Disclosure of Invention
The embodiment of the invention provides an unlocking method and a terminal, which aim to realize a simpler and universal unlocking mode.
The embodiment of the invention provides an unlocking method, which comprises the following steps:
acquiring touch operation on a touch area on a touch screen;
judging whether the acquired touch operation is matched with the set duration and the set operation when the touch screen is unlocked; the setting operation is a multi-point touch operation, the setting operation comprises a first setting operation and a second setting operation, the movement direction of the first setting operation and the movement direction of the second setting operation are opposite, and the first setting operation and the second setting operation are uninterrupted;
and when the acquired touch operation is judged to be matched with the set duration and the set operation, executing the operation of unlocking the touch screen.
Preferably, before the obtaining of the touch operation on the touch area on the touch screen, the method includes:
and determining that the current state of the touch screen is a screen locking standby state, wherein an unlocking operation interface corresponding to the screen locking standby state is a transparent interface, and the unlocking operation interface covers a theme interface.
The setting operation is a multi-touch operation, further comprising: the setting operation is a double-point touch operation.
Preferably, the judgment is made to determine whether the acquired touch operation is matched with the set duration and the set operation when the touch screen is unlocked; the following method is adopted:
determining initial point position information, inflection point position information and end point position information of the touch operation responding to screen unlocking according to a set unlocking touch area boundary;
judging the relationship between the distance from the starting point of the touch operation to the inflection point and the threshold of a first set distance corresponding to the first operation and the relationship between the distance from the inflection point of the touch operation to the end point of the touch operation and the threshold of a second set distance of the second operation, and judging the touch duration of the touch operation and the set duration; the first set distance is the distance from the starting point of the first set operation to the end point of the first set operation, the second set distance is the distance from the starting point of the second set operation to the end point of the second set operation, and the end point of the first set operation and the starting point of the second set operation are the same point;
and executing the touch screen unlocking operation when the distance from the starting point of the touch operation to the inflection point is judged to be not less than the threshold of the first set distance, the distance from the inflection point of the touch operation to the terminal point of the touch operation is judged to be not less than the threshold of the second set distance, and the duration of the touch operation is not more than the set duration.
Preferably, the judgment is made to determine whether the acquired touch operation is matched with the set duration and the set operation when the touch screen is unlocked; wherein, the setting operation is a double-point touch operation, the setting operation includes a first setting operation and a second setting operation, the movement direction of the first setting operation and the second setting operation is opposite, and the first setting operation and the second setting operation are continuous, and the method further includes:
detecting the distance between two touch points of the double-point touch operation;
judging the size of the detected distance between the two touch points and the set distance of the set operation;
and when the distance between the two touch points is judged not to exceed the set distance, executing the operation of unlocking the touch screen.
Preferably, the distance between the two touch points of the setting operation is not changed.
Preferably, the setting operation is a double-point touch operation, the setting operation includes a first operation and a second operation, the moving direction of the first operation is opposite to that of the second operation, and the first operation and the second operation are consecutive, and the setting operation includes:
the first setting operation is from bottom to top, the second setting operation is from top to bottom, and the first setting operation and the second setting operation are uninterrupted; or
The first setting operation is from top to bottom, the second setting operation is from bottom to top, and the first setting operation and the second setting operation are uninterrupted.
Preferably, the setting operation is a two-point touch operation, the setting operation includes a first operation and a second operation, the first operation and the second operation move in opposite directions, and the first operation and the second operation are continuous, further including: the directions of the first setting operation and the second setting operation are opposite and parallel to each other, and the first setting operation and the second setting operation are uninterrupted; or
The first setting operation and the second setting operation are in opposite directions and are not parallel to each other, and the first setting operation and the second setting operation are uninterrupted and the second setting operation is not interrupted.
An embodiment of the present invention further provides a terminal, where the terminal includes:
the acquisition unit is used for acquiring touch operation on a touch area on the touch screen;
the judging unit is used for judging whether the acquired touch operation is matched with the set duration and the set operation when the touch screen is unlocked; the setting operation is a double-point touch operation, the setting operation comprises a first setting operation and a second setting operation, the movement direction of the first setting operation is opposite to that of the second setting operation, and the first setting operation and the second setting operation are continuous and uninterrupted;
and the unlocking unit is used for executing the operation of unlocking the touch screen when the acquired operation instruction is judged to be matched with the set duration and the set path.
Preferably, the terminal further includes: a determination unit for determining whether the received signal is correct,
the determining unit is used for determining that the current state of the touch screen is a screen locking standby state, wherein a screen locking interface corresponding to the screen locking standby state is a transparent interface.
Preferably, the judging unit includes:
the determining module is used for determining the initial point position information, the inflection point position information and the end point position information of the touch operation responding to screen unlocking according to the set unlocking touch area boundary;
the judging module is used for judging the relationship between the distance from the starting point of the touch operation to the inflection point and the threshold of the first set distance corresponding to the first operation and the relationship between the distance from the inflection point of the touch operation to the end point of the touch operation and the threshold of the second set distance of the second operation, and judging the touch duration of the touch operation and the set duration; the first set distance is the distance from the starting point of the first set operation to the end point of the first set operation, the second set distance is the distance from the starting point of the second set operation to the end point of the second set operation, and the end point of the first set operation and the starting point of the second set operation are the same point;
the unlocking unit is further used for executing unlocking the touch screen operation when the distance from the starting point of the touch operation to the inflection point is judged to be not less than the first set distance and the distance from the inflection point of the touch operation to the end point of the touch operation is judged to be not less than the threshold of a second set distance, and the duration of the touch operation is not more than the set duration.
Preferably, the determination unit further includes:
the detection module is used for detecting the distance between two touch points of the double-point touch operation; wherein,
the judging module is further configured to judge the size of the detected distance between the two touch points and the set distance of the setting operation;
and the unlocking unit is also used for executing the operation of unlocking the touch screen when the distance between the two touch points is judged not to exceed the set distance.
The embodiment of the invention has the following advantages:
the invention provides a simple and universal unlocking method, when a touch screen is in a screen locking standby state, any position of a touch area of the touch screen is touched by two adjacent fingers, and the unlocking is realized by performing continuous sliding up and down on the touch screen, of course, the purpose of unlocking can be achieved only by finishing the sliding of the two fingers within set time, and in the process of reciprocating, although the distance of the up and down reciprocating is not required to be the same or return along the original path, the sliding distance is required to reach the threshold value of the set distance, so as to avoid the problem of misoperation unlocking under the conditions of a trouser pocket and the like.
Detailed Description
The embodiment of the invention provides an unlocking method and a terminal, and the detailed description is carried out by combining the attached drawings of the specification and the specific embodiment.
As shown in fig. 1, an unlocking method provided in an embodiment of the present invention includes:
s101: acquiring touch operation on a touch area on a touch screen;
s102: judging whether the acquired touch operation is matched with the set duration and the set operation when the touch screen is unlocked; the setting operation is a multi-point touch operation, the setting operation comprises a first setting operation and a second setting operation, the movement direction of the first setting operation and the movement direction of the second setting operation are opposite, and the first setting operation and the second setting operation are uninterrupted;
s103: and when the acquired touch operation is judged to be matched with the set duration and the set operation, executing the operation of unlocking the touch screen.
In the embodiment of the invention, the unlocking operation interface corresponding to the screen locking standby state is a transparent interface, and the unlocking operation interface covers the theme interface, so that all users can be ensured not to be influenced when using the screen locking interface which can replace any theme desktop or along with the theme, and a simple and universal unlocking mode is also provided. The unlocking mode can not be changed along with the change of the theme, so that the user can experience the unlocking mode more conveniently and more easily, and the unlocking mode is more universal.
In addition, in the embodiment provided by the present invention, as long as any position is selected in the touch area of the touch screen to satisfy the set unlocking operation, unlocking can be achieved without being limited by the position of the touch area. For example, you can select two points at a certain position of the touch area as a touch starting point, and slide the touch area back and forth without interruption, and the touch area needs to meet the requirements of setting operation in the process of touch sliding.
Preferably, in the embodiment of the present invention, the following method may be adopted to determine whether the acquired touch operation matches the set duration and the set operation when the touch screen is unlocked:
firstly, according to a set unlocking touch area boundary, determining initial point position information, inflection point position information and end point position information of the touch operation responding to screen unlocking;
secondly, judging the relationship between the distance from the starting point of the touch operation to the inflection point and the threshold of a first set distance corresponding to the first operation and the relationship between the distance from the inflection point of the touch operation to the end point of the touch operation and the threshold of a second set distance of the second operation, and judging the touch duration of the touch operation and the set duration; the first set distance is the distance from the starting point of the first set operation to the end point of the first set operation, the second set distance is the distance from the starting point of the second set operation to the end point of the second set operation, and the end point of the first set operation and the starting point of the second set operation are the same point;
and when the distance from the starting point of the touch operation to the inflection point is judged to be not less than the threshold of the first set distance, the distance from the inflection point of the touch operation to the end point of the touch operation is judged to be not less than the threshold of the second set distance, and the duration of the touch operation is not more than the set duration, unlocking the touch screen operation.
In another way, the distance between two touch points of the double-point touch operation needs to be detected;
judging the size of the detected distance between the two touch points and the set distance of the set operation;
and when the distance between the two touch points is judged not to exceed the set distance, executing the operation of unlocking the touch screen.
Certainly, a stricter unlocking manner may be implemented by combining the two situations, and unlocking may be implemented only when the distance from the start point to the inflection point of the touch operation is not less than the threshold of the first set distance and the distance from the inflection point to the end point of the touch operation is not less than the threshold of the second set distance, and the duration of the touch operation does not exceed the set duration, and when the distance between two touch points does not exceed the set distance. Furthermore, the distance between the two touch points of the setting operation can be kept unchanged.
As shown in fig. 2, which is an operation diagram of the second embodiment of the present invention, a user may slide down to an inflection point along a certain position in a touch area of a touch screen by using two fingers, where a distance from a starting point to the inflection point is not less than a threshold of a first set distance of a first set operation, then slide up to an end point at the inflection point, and satisfy a threshold of a second set distance of a second set operation, where a distance from the inflection point to the end point is not less than a threshold of a second set distance of the second set operation, and the two fingers of the user are closed when sliding, and the touch operation process is completed within a set time length. It should be further noted that the distance between the two touch points can be kept unchanged by closing the two fingers, and the threshold not smaller than the first set distance and the second set distance is to ensure that a misoperation occurs under certain conditions, for example, when a mobile phone is placed in a trousers pocket or the hands touch a screen carelessly, the threshold of the first set distance can be reached, but the threshold of the second set distance cannot be met, in order to prevent the mistaken touch unlocking, the setting not smaller than the first set distance nor smaller than the second set distance needs to be met within a set time duration.
In this embodiment, the first setting operation is from top to bottom, the second setting operation is from bottom to top, and the first setting operation and the second setting operation are not interrupted; the first setting operation and the second setting operation are opposite in direction and parallel to each other, which is equivalent to a reciprocating movement along a straight line, and preferably, the distance from the inflection point to the end point, i.e., the second setting distance, when returning is not necessarily equal to, may be equal to, or may not be equal to the first setting distance, i.e., the distance from the start point to the inflection point.
As shown in fig. 3, which is an operation diagram of the third embodiment of the present invention, a user may also slide up to an inflection point along a starting position in a touch area of a touch screen by using two fingers, where a distance from the starting point to the inflection point is not less than a threshold of a first set distance of a first set operation, then slide down to an end point at the inflection point, and satisfy a threshold of a second set distance from the inflection point to the end point, where the distance from the inflection point to the end point is not less than a threshold of a second set distance of a second set operation, and the two fingers of the user are closed together during sliding, and the touch operation process is completed within a set time length. It should be further noted that the distance between the two touch points can be kept unchanged by closing the two fingers, and the distance is not less than the first set distance and the second set distance, so as to ensure that misoperation can occur under certain conditions, for example, when a mobile phone is placed in a trousers pocket or the hands touch a screen carelessly, the first set distance can be reached, but the length of the second set distance cannot be met, and in order to prevent the unlocking by touching the mobile phone by mistake, the threshold value not less than the first set distance and the threshold value not less than the second set distance need to be met within a set time period.
In this embodiment, a first setting operation is from bottom to top, a second setting operation is from top to bottom, and the first setting operation and the second setting operation are uninterrupted; the first setting operation and the second setting operation are opposite in direction and parallel to each other, which is equivalent to a reciprocating movement along a straight line, and preferably, the distance from the inflection point to the end point, that is, the second setting distance, and the distance from the start point to the inflection point, that is, the first setting distance are not necessarily equal, may be equal, or may be unequal.
Similarly, as shown in fig. 4, it is an operation diagram of a fourth embodiment of the present invention, wherein a first setting operation is from bottom to top, a second setting operation is from top to bottom, and the first setting operation and the second setting operation are not interrupted; and the directions of the first setting operation and the second setting operation are opposite and not parallel to each other, which is equivalent to that a certain angle is formed between the first setting operation and the second setting operation with an inflection point as a vertex angle, and is equivalent to that a setting operation with a track similar to inverted V. Preferably, the distance from the inflection point to the end point, that is, the second set distance, when returning, is not necessarily equal to, may be equal to, or may be different from the first set distance, that is, the distance from the start point to the inflection point, but is not less than the threshold value of the first set distance in the first setting operation and the threshold value of the second set distance in the second setting operation.
Similarly, as shown in fig. 5, it is a schematic operation diagram of a fifth embodiment of the present invention, wherein a first setting operation is from top to bottom, a second setting operation is from bottom to top, and the first setting operation and the second setting operation are not interrupted; and the directions of the first setting operation and the second setting operation are opposite and are not parallel to each other, which is equivalent to that a certain angle is formed between the first setting operation and the second setting operation with the inflection point as a vertex angle, which is equivalent to that the setting operation is formed in a track similar to V. Preferably, the distance from the inflection point to the end point, that is, the second set distance, when returning, is not necessarily equal to, may be equal to, or may be different from the first set distance, that is, the distance from the start point to the inflection point, but is not less than the threshold value of the first set distance in the first setting operation and the threshold value of the second set distance in the second setting operation.
As shown in fig. 6, a schematic structural diagram of a terminal provided in an embodiment of the present invention is shown, where the terminal includes:
an obtaining unit 601, configured to obtain a touch operation on a touch area on a touch screen;
a determining unit 602, configured to determine whether the acquired touch operation matches a set duration and a set operation when the touch screen is unlocked; the setting operation is a multi-touch operation, the setting operation includes a first setting operation and a second setting operation, the movement direction of the first setting operation is opposite to that of the second setting operation, and the first setting operation and the second setting operation are continuous and uninterrupted.
And an unlocking unit 603, configured to execute an operation of unlocking the touch screen when it is determined that the obtained operation instruction matches both the set duration and the set path.
Further, the terminal further includes: a determination unit for determining whether the received signal is correct,
the determining unit is used for determining that the current state of the touch screen is a screen locking standby state, wherein a screen locking interface corresponding to the screen locking standby state is a transparent interface.
Fig. 7 is a schematic structural diagram of a determining unit of a terminal according to an embodiment of the present invention, where the determining unit includes:
a determining module 701, configured to determine, according to a set unlocking touch area boundary, start point position information, inflection point position information, and end point position information of the touch operation in response to the screen unlocking;
a determining module 702, configured to determine a size relationship between a distance from a starting point to an inflection point of the touch operation and a threshold of a first set distance corresponding to the first operation, and a distance from the inflection point to an end point of the touch operation and a threshold of a second set distance of the second operation, and determine a size of a touch duration and a set duration of the touch operation; the first set distance is the distance from the starting point of the first set operation to the end point of the first set operation, the second set distance is the distance from the starting point of the second set operation to the end point of the second set operation, and the end point of the first set operation and the starting point of the second set operation are the same point;
the unlocking unit 603 is further configured to execute unlocking the touch screen operation when it is determined that the distance from the start point to the inflection point of the touch operation is not less than the first set distance and the distance from the inflection point to the end point of the touch operation is not less than a threshold of a second set distance, and the duration of the touch operation is not longer than the set duration.
As shown in fig. 8, which is a schematic structural diagram of a determining unit of a terminal according to another embodiment of the present invention, taking two-point touch operation as an example, the determining unit includes:
a detection module 801, configured to detect a distance between two touch points in a two-point touch operation; wherein,
the determining module 802 is further configured to determine a size of the detected distance between the two touch points and a set distance of the setting operation;
the unlocking unit 603 is further configured to execute an operation of unlocking the touch screen when it is determined that the distance between the two touch points does not exceed the set distance.
The modules described in fig. 7 and 8 can be integrated based on the determination unit, so as to implement a stricter unlocking manner, and bring better experience to a user while being not easily subjected to misoperation.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.