CN110602306A - Screen locking method and device of mobile terminal - Google Patents

Screen locking method and device of mobile terminal Download PDF

Info

Publication number
CN110602306A
CN110602306A CN201910817969.0A CN201910817969A CN110602306A CN 110602306 A CN110602306 A CN 110602306A CN 201910817969 A CN201910817969 A CN 201910817969A CN 110602306 A CN110602306 A CN 110602306A
Authority
CN
China
Prior art keywords
mobile terminal
acceleration
screen locking
accelerometer
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910817969.0A
Other languages
Chinese (zh)
Inventor
苏立国
宣善明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Network Co Ltd
Original Assignee
Datang Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Network Co Ltd filed Critical Datang Network Co Ltd
Priority to CN201910817969.0A priority Critical patent/CN110602306A/en
Publication of CN110602306A publication Critical patent/CN110602306A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a screen locking method and device of a mobile terminal. Wherein the mobile terminal comprises an accelerometer, the method comprising: monitoring an acceleration parameter detected by the accelerometer; comparing the acceleration parameter with a preset acceleration threshold; and determining whether to control the screen locking of the mobile terminal according to the comparison result and the running state of the application program currently running by the mobile terminal. The invention solves the technical problem that the screen locking of the mobile terminal in the prior art cannot combine sensitivity and convenience.

Description

Screen locking method and device of mobile terminal
Technical Field
The invention relates to the field of mobile terminals, in particular to a screen locking method and device of a mobile terminal.
Background
Currently, with the rapid rise of the mobile internet, people increasingly rely on mobile phones, the development of the mobile phones brings convenience to users, and meanwhile, the mobile phones are convenient and rapid to develop. The screen locking technology is an indispensable technology of the mobile phone, and the current mobile phone screen locking technologies mainly include two types: (1) the key screen locking is realized, a screen locking key is arranged on the upper right side of a common intelligent terminal, the key generally supports multiple functions, the shutdown is carried out by long pressing, the screen locking is carried out by short pressing, and the screen locking technology is quick and does not need to wait subjectively; (2) the dormancy screen locking has an automatic locking function in the conventional setting function of the intelligent terminal, and the time can be set, so that the mobile phone can automatically lock the screen when the mobile phone is in a standby state.
However, both of the above-mentioned two screen locking methods have corresponding drawbacks. Although the method for locking the screen based on the keys is relatively convenient and fast, it is well known that each entity key has the service life of the key, and the screen locking key is less and less sensitive even influences other functions when pressed for a long time. The disadvantage of waiting for screen locking is that electricity is consumed, the endurance time of the terminal is sacrificed, misoperation is easy, and meanwhile the terminal loses the subjective and convenient significance.
For the disadvantage of key screen locking, there is also a scheme of replacing the entity key by touch control, for example, in an apple mobile phone, an auxiliary function-assistance touch is set, and a device is clicked to lock the screen, but the disadvantage is revealed, and the user completes the screen locking operation, needs to sequentially touch three buttons, is complicated, and cannot achieve the purpose of convenience and quickness.
Aiming at the problem that the screen locking of the mobile terminal in the prior art cannot combine sensitivity and convenience, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a screen locking method and device of a mobile terminal, which at least solve the technical problem that the screen locking of the mobile terminal in the prior art cannot combine sensitivity and convenience.
According to an aspect of an embodiment of the present invention, there is provided a screen locking method for a mobile terminal, where the mobile terminal includes an accelerometer, and the screen locking method for the mobile terminal includes: monitoring an acceleration parameter detected by an accelerometer; comparing the acceleration parameter with a preset acceleration threshold; and determining whether to control the screen locking of the mobile terminal according to the comparison result and the running state of the application program currently running by the mobile terminal.
Further, if the comparison result is that the acceleration parameter is smaller than or equal to the acceleration threshold, prohibiting controlling the mobile terminal to lock the screen; and if the comparison result is that the acceleration parameter is larger than the acceleration threshold, determining whether to control the screen locking of the mobile terminal according to the running state of the application program currently running by the mobile terminal.
Further, acquiring the running state of the application program currently running by the mobile terminal, wherein the running state comprises whether the preset function of the application program monitors the acceleration parameter detected by the accelerometer or not; if the preset function of any application program currently running on the mobile terminal monitors the acceleration parameter detected by the accelerometer, prohibiting controlling the screen locking of the mobile terminal; and if the preset functions of all the application programs currently running on the mobile terminal do not monitor the acceleration parameters detected by the accelerometer, controlling the screen locking of the mobile terminal.
Further, the acceleration parameters comprise acceleration parameters of the mobile terminal on three preset axes, and the acceleration parameters on each axis are compared with corresponding acceleration thresholds, wherein if the acceleration parameters on any axis are greater than the corresponding acceleration thresholds, the comparison result is that the acceleration parameters are greater than the acceleration thresholds; or comparing the acceleration parameter on the designated axis with the corresponding acceleration threshold.
Further, if the preset function of any application program currently running on the mobile terminal monitors the acceleration parameter detected by the accelerometer, after the mobile terminal is prohibited from being controlled to lock the screen, the mobile terminal is controlled to execute the action indicated by the acceleration parameter according to the preset function of the application program.
According to an aspect of an embodiment of the present invention, there is provided a screen locking apparatus of a mobile terminal, the mobile terminal including an accelerometer, the apparatus including: the monitoring module is used for monitoring the acceleration parameters detected by the accelerometer; the comparison module is used for comparing the acceleration parameter with a preset acceleration threshold; and the determining module is used for determining whether to control the screen locking of the mobile terminal according to the comparison result and the running state of the application program currently running in the mobile terminal.
Further, the determining module includes: the forbidding submodule is used for forbidding to control the screen locking of the mobile terminal if the acceleration parameter is smaller than or equal to the acceleration threshold value according to the comparison result; and the screen locking sub-module is used for determining whether to control the screen locking of the mobile terminal according to the running state of the application program currently running by the mobile terminal if the acceleration parameter is larger than the acceleration threshold value according to the comparison result.
Further, the screen locking sub-module comprises: the mobile terminal comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the running state of an application program currently running by the mobile terminal, and the running state comprises whether a preset function of the application program monitors an acceleration parameter detected by an accelerometer or not; the prohibiting unit is used for prohibiting controlling the screen locking of the mobile terminal if the acceleration parameter detected by the accelerometer is monitored by the preset function of any application program currently running by the mobile terminal; and the screen locking unit is used for controlling the screen locking of the mobile terminal if the preset functions of all the application programs currently running of the mobile terminal do not monitor the acceleration parameters detected by the accelerometer.
According to an aspect of the embodiments of the present invention, there is provided a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus where the storage medium is located is controlled to execute the above-mentioned screen locking method of the mobile terminal.
According to an aspect of the embodiments of the present invention, there is provided a processor, where the processor is configured to execute a program, where the program executes the screen locking method of the mobile terminal.
In the embodiment of the invention, the acceleration parameter detected by the accelerometer is monitored, the acceleration parameter is compared with the preset acceleration threshold, and whether to control the screen locking of the mobile terminal is determined according to the comparison result and the running state of the application program currently running by the mobile terminal. According to the scheme, the operations such as shaking of the mobile terminal by a user are detected by detecting the acceleration parameter detected by the accelerometer, the acceleration parameter is compared with the acceleration threshold value, and the shaking of the user is determined to be used for controlling the screen locking of the mobile terminal by combining the running state of the application program currently running by the mobile terminal. Use this scheme to accomplish the lock screen and handle, reduce the use number of times of lock screen entity key, the electric quantity of having avoided the waste when waiting for automatic lock screen, easy operation is convenient simultaneously, need not the button in dormancy cell-phone, need not to wait for, need not complicated operation, rocks the cell-phone hard and can accomplish the automatic lock screen of cell-phone, and is simple, swift, avoids the maloperation.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a screen locking method of a mobile terminal according to an embodiment of the present invention;
FIG. 2 is a schematic coordinate diagram of an accelerometer according to an embodiment of the invention;
fig. 3 is a flowchart illustrating an alternative screen locking method of a mobile terminal according to an embodiment of the present invention; and
fig. 4 is a schematic diagram of a screen locking apparatus of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a screen locking method for a mobile terminal, it should be noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown.
Fig. 1 is a flowchart of a screen locking method of a mobile terminal including an accelerometer according to an embodiment of the present invention, as shown in fig. 1, the method including the steps of:
and step S102, monitoring the acceleration parameters detected by the accelerometer.
Specifically, the accelerometer measures acceleration parameters in a manner relative to free fall, and by sensing the total amount of inertia in a particular direction, the accelerometer can measure acceleration and gravity, which can be a three-axis accelerometer, one meaning that motion in three-dimensional space or gravity can be detected for detecting acceleration of the device in the X, Y, Z axis.
In the above scheme, the system of the mobile terminal may detect the acceleration parameter according to a certain sampling period. In an alternative embodiment, the system may sample the acceleration parameter at a frequency of 60 times per second.
And step S104, comparing the acceleration parameter with a preset acceleration threshold value.
Specifically, the acceleration threshold may be a preset acceleration value.
In an optional embodiment, the acceleration threshold may be an acceleration value, after the acceleration parameters of the mobile terminal in three dimensions are obtained through the three-dimensional accelerometer, the three acceleration parameters are combined into one acceleration parameter in the three-dimensional space, and the combined acceleration parameter is compared with the acceleration threshold.
In another optional embodiment, the acceleration threshold may be three acceleration values, which respectively correspond to each axis, and after the acceleration parameters of the mobile terminal in three dimensions are obtained through the three-dimensional accelerometer, the three acceleration parameters are respectively compared with the corresponding acceleration threshold.
And step S106, determining whether to control the screen locking of the mobile terminal according to the comparison result and the running state of the application program currently running by the mobile terminal.
And determining that the user is likely to perform an operation of shaking the mobile terminal when the comparison result is that the acceleration parameter is greater than the acceleration threshold.
In the above solution, the mobile terminal may be controlled to lock the screen when the comparison result indicates that the acceleration parameter is greater than the acceleration threshold, but when there is a problem, some applications of the mobile terminal require a user to shake the mobile terminal, so that the acceleration parameter is greater than the acceleration threshold.
In an optional embodiment, it may be monitored whether the mobile terminal starts a preset application, for example, a function of shaking or shaking, which requires a user to operate the mobile terminal to generate a large acceleration, is started when the comparison result shows that the acceleration parameter exceeds the acceleration threshold, and when it is monitored that the mobile terminal starts any one of the preset functions, it is determined that the acceleration parameter exceeds the acceleration threshold at this time is caused by the user starting any one of the preset applications, and the mobile terminal is controlled not to perform a screen locking operation.
It should be noted that, the above scheme does not need to rely on the entity screen locking key to complete the screen locking function of the mobile phone; the screen locking function of the mobile phone is completed without setting the standby time or the intelligent body sense; based on the accelerometer principle of the mobile phone, the mobile phone is shaken forcefully to monitor the change of the acceleration in each direction, and the automatic screen locking function is realized under the condition that the acceleration exceeds a set acceleration threshold value and is not intercepted by a front-end App event.
It should be noted that, in the method for controlling the mobile terminal to lock the screen, the mobile terminal may be controlled to unlock by pressing an unlock key, or may be controlled to unlock by detecting an acceleration parameter detected by the accelerometer, but the mobile terminal needs to continuously monitor the accelerometer in the screen-locked state.
Therefore, the acceleration parameter detected by the accelerometer is monitored, the acceleration parameter is compared with a preset acceleration threshold value, and whether the screen locking of the mobile terminal is controlled or not is determined according to a comparison result and the running state of the application program currently running on the mobile terminal. According to the scheme, the operations such as shaking of the mobile terminal by a user are detected by detecting the acceleration parameter detected by the accelerometer, the acceleration parameter is compared with the acceleration threshold value, and the shaking of the user is determined to be used for controlling the screen locking of the mobile terminal by combining the running state of the application program currently running by the mobile terminal. Use this scheme to accomplish the lock screen and handle, reduce the use number of times of lock screen entity key, the electric quantity of having avoided the waste when waiting for automatic lock screen, easy operation is convenient simultaneously, need not the button in dormancy cell-phone, need not to wait for, need not complicated operation, rocks the cell-phone hard and can accomplish the automatic lock screen of cell-phone, and is simple, swift, avoids the maloperation.
As an optional embodiment, determining whether to control the screen locking of the mobile terminal according to the comparison result and the operation state of the application currently running on the mobile terminal includes: if the comparison result is that the acceleration parameter is smaller than or equal to the acceleration threshold, forbidding to control the mobile terminal to lock the screen; and if the comparison result is that the acceleration parameter is larger than the acceleration threshold, determining whether to control the screen locking of the mobile terminal according to the running state of the application program currently running by the mobile terminal.
If the comparison result is that the acceleration parameter is smaller than or equal to the acceleration threshold, it is determined that screen locking operation cannot be triggered, and if the comparison result is that the acceleration parameter is larger than the acceleration threshold, it is determined whether to control the screen locking of the mobile terminal according to the running state of the currently running application program, so as to determine whether a front-end APP intercepts shaking events of the user.
As an optional embodiment, determining whether to control the screen locking of the mobile terminal according to the running state of the application currently running on the mobile terminal includes: acquiring the running state of an application program currently running by the mobile terminal, wherein the running state comprises whether a preset function of the application program monitors an acceleration parameter detected by the accelerometer or not; if the preset function of any application program currently running by the mobile terminal monitors the acceleration parameter detected by the accelerometer, prohibiting controlling the screen locking of the mobile terminal; and if the preset functions of all the application programs currently running on the mobile terminal do not monitor the acceleration parameters detected by the accelerometer, controlling the screen locking of the mobile terminal.
Specifically, the preset function refers to a function that needs to intercept a shaking operation of a user. For example, the wechat APP needs to record the motion step number, so the acceleration parameter of the accelerometer can be monitored continuously, but the function of recording the motion step number is operated in the background, and the shaking operation of the user does not need to be intercepted, so the function of recording the motion step number does not belong to the preset function, and the shaking function of the wechat APP needs to intercept the moving operation of the user even if feedback is made, so the shaking function of the wechat APP is the preset function.
If the preset function of any application program currently running in the mobile terminal monitors the acceleration parameter detected by the accelerometer, the preset function intercepts shaking operation of a user, executes response action and returns response data, and if the preset function of all application programs currently running in the mobile terminal does not monitor the acceleration parameter detected by the accelerometer, the system directly controls screen locking of the mobile terminal according to the acceleration parameter.
As an optional embodiment, the acceleration parameter includes acceleration parameters of the mobile terminal on three preset axes, and comparing the acceleration parameter with a preset acceleration threshold includes: comparing the acceleration parameter on each axis with the corresponding acceleration threshold, wherein if the acceleration parameter on any axis is greater than the corresponding acceleration threshold, the comparison result is determined that the acceleration parameter is greater than the acceleration threshold; or comparing the acceleration parameter on the designated axis with the corresponding acceleration threshold.
Fig. 2 is a schematic coordinate diagram of an accelerometer according to an embodiment of the invention, shown in connection with fig. 2, in which the mobile terminal has a three-axis accelerometer capable of detecting X, Y, Z acceleration parameters of the terminal in three axes, respectively. The detection result of the accelerometer comprises three acceleration parameters of three axes, and the acceleration threshold values also comprise three acceleration parameters, namely the three axes can respectively correspond to different acceleration threshold values.
In an alternative embodiment, the direction of shaking of the unlocking operation is not set. When comparing the acceleration parameter with the acceleration threshold, the acceleration parameter of each axis is compared with the corresponding acceleration threshold, for example, the acceleration parameter of the X axis is compared with the acceleration threshold of the X axis, the acceleration parameter of the Y axis is compared with the acceleration threshold of the Y axis, and the acceleration parameter of the Z axis is compared with the acceleration threshold of the Z axis. And finally obtaining three comparison results, wherein if the acceleration parameter of any axis is greater than the acceleration threshold corresponding to the axis, the comparison result is determined that the acceleration parameter is greater than the acceleration threshold.
In another alternative embodiment, the designated axis is any one of three axes X, Y, Z, which is determined according to the set direction of the unlocking shaking operation, and if the set direction of the unlocking shaking operation is the X-axis direction, the acceleration parameter of the X-axis and the corresponding acceleration threshold value are detected; if the set unlocking shaking direction is the Y-axis direction, detecting the acceleration parameter of the Y axis and the acceleration threshold corresponding to the acceleration parameter; if the set unlocking shaking direction is the z-axis direction, detecting the acceleration parameter of the z-axis and the corresponding acceleration threshold value thereof,
as an optional embodiment, if a preset function of any application currently running on the mobile terminal monitors an acceleration parameter detected by the accelerometer, after prohibiting control of the mobile terminal to lock the screen, the method further includes: and controlling the mobile terminal to execute the preset function of the application program according to the action indicated by the acceleration parameter.
If the preset function of any application program currently running in the mobile terminal monitors the acceleration parameter detected by the accelerometer, the front-end APP intercepts shaking operation of the user, and therefore the preset function in the mobile execution APP is controlled to execute indication made on the shaking operation of the user. For example, if the shake operation triggers a shake-and-shake operation, the shake-and-shake operation is performed without locking the screen.
Fig. 3 is a flowchart of an alternative screen locking method of a mobile terminal according to an embodiment of the present invention, and the screen locking method of the mobile terminal is described below with reference to fig. 3:
the accelerometer measures acceleration in a manner relative to free fall, which is the basis for determining the orientation of the device given that the device is stationary and is subjected to 1g of earth traction, the accelerometer can measure 3-axis values (x, y, z) simultaneously, the accelerometer can measure acceleration and gravity by sensing the total amount of inertia in a particular direction, the accelerometer of the mobile terminal is a three-axis accelerometer, and thus motion or gravitational force in three-dimensional space can be detected. The accelerometer can measure g-attraction, not only to detect the way the phone is held (auto-rotate function), but also to indicate if the phone is placed on a desk, right side down or up. If the detected accelerometer is greater than 1g, it can be determined that this is caused by sudden motion, and in normal use, the accelerometer will not detect a value greater than 1g in any axis, and if the mobile terminal is shaken, the accelerometer will detect a large force in one or more axes, and the accelerometer uses a three-axis structure: the screen locking method comprises the following steps of (1) enabling a z-axis to be vertical to the front surface of a screen, enabling the x-axis to be called as a y-axis from the upper side of the screen to a home key, and determining shaking operation of a user by detecting acceleration on three axes to achieve the purpose of locking the screen, wherein the specific implementation steps are as follows:
and step S31, setting the sampling interval frequency of the accelerometer to be not less than 1 second and 60 times.
In step S32, the detected acceleration parameter is compared with the acceleration parameter threshold. If the acceleration parameter is greater than the threshold value, the process proceeds to step S33, otherwise, the process returns to step S31.
Specifically, the acceleration parameter that detects includes at X, Y, Z, the epaxial acceleration parameter of three, also has an acceleration critical value that discernment rocked respectively at X, Y, Z, three axle to compare after gathering the acceleration value, different axles set up different critical values and can decide to rock the direction that takes effect and the dynamics of rocking, set for great value with the critical value and can avoid user's maloperation.
When a user shakes the mobile terminal, if acceleration data of any one of X, Y, Z three axes acquired by the equipment accelerometer is larger than a critical value of the corresponding axis, it is determined that the screen locking precondition is met, the next verification operation can be executed, and if the acceleration data is not met, other operations of the system are executed.
And step S33, detecting whether the front end App of the current mobile terminal monitors the accelerometer or shakes a shake event to execute other operations of the terminal. If the judgment result is yes, the process returns to the step S31, otherwise, the process proceeds to the step S34.
And if not, calling the system screen locking monitoring method and executing screen locking operation.
And step S34, controlling the screen locking of the mobile terminal.
Example 2
According to an embodiment of the present invention, an embodiment of a screen locking apparatus of a mobile terminal is provided, and fig. 4 is a schematic diagram of a screen locking apparatus of a mobile terminal according to an embodiment of the present invention, where the mobile terminal includes an accelerometer, as shown in fig. 4, the apparatus includes:
and the monitoring module 40 is used for monitoring the acceleration parameters detected by the accelerometer.
And a comparison module 42, configured to compare the acceleration parameter with a preset acceleration threshold.
And the determining module 44 is configured to determine whether to control the screen locking of the mobile terminal according to the comparison result and the operation state of the application program currently operated by the mobile terminal.
As an alternative embodiment, the determining module includes: the forbidding submodule is used for forbidding to control the screen locking of the mobile terminal if the comparison result shows that the acceleration parameter is smaller than or equal to the acceleration threshold; and the screen locking sub-module is used for determining whether to control the screen locking of the mobile terminal according to the running state of the currently running application program of the mobile terminal if the comparison result shows that the acceleration parameter is greater than the acceleration threshold.
As an alternative embodiment, the screen locking sub-module includes: the acquiring unit is used for acquiring the running state of an application program currently running by the mobile terminal, wherein the running state comprises whether a preset function of the application program monitors an acceleration parameter detected by the accelerometer or not; the prohibiting unit is used for prohibiting controlling the screen locking of the mobile terminal if the acceleration parameter detected by the accelerometer is monitored by the preset function of any application program currently running by the mobile terminal; and the screen locking unit is used for controlling the screen locking of the mobile terminal if the preset functions of all the application programs currently running of the mobile terminal do not monitor the acceleration parameters detected by the accelerometer.
As an optional embodiment, the acceleration parameters include acceleration parameters of the mobile terminal on three preset axes, and the comparison module includes: the comparison submodule is used for comparing the acceleration parameter on each axis with the corresponding acceleration threshold; if the acceleration parameter on any one axis is larger than the corresponding acceleration threshold, the comparison result is determined that the acceleration parameter is larger than the acceleration threshold.
As an alternative embodiment, the apparatus further comprises: and the control module is used for controlling the mobile terminal to execute the action of the preset function of the application program according to the acceleration parameter indication after the mobile terminal is forbidden to be controlled to lock the screen if the preset function of any application program currently running on the mobile terminal monitors the acceleration parameter detected by the accelerometer.
Example 3
According to an embodiment of the present invention, there is provided a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the screen locking method of the mobile terminal according to any one of embodiments 1.
Example 4
According to an embodiment of the present invention, there is provided a processor, where the processor is configured to execute a program, where the program executes a screen locking method of a mobile terminal according to any one of embodiments 1.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A screen locking method of a mobile terminal is characterized in that the mobile terminal comprises an accelerometer, and the screen locking method of the mobile terminal comprises the following steps:
monitoring an acceleration parameter detected by the accelerometer;
comparing the acceleration parameter with a preset acceleration threshold;
and determining whether to control the screen locking of the mobile terminal according to the comparison result and the running state of the application program currently running by the mobile terminal.
2. The method according to claim 1, wherein determining whether to control the screen locking of the mobile terminal according to the comparison result and the operation state of the application currently operated by the mobile terminal comprises:
if the comparison result is that the acceleration parameter is smaller than or equal to the acceleration threshold, forbidding to control the mobile terminal to lock the screen;
and if the comparison result is that the acceleration parameter is larger than the acceleration threshold, determining whether to control the screen locking of the mobile terminal according to the running state of the application program currently running by the mobile terminal.
3. The method according to claim 1, wherein determining whether to control the screen locking of the mobile terminal according to the running state of the application currently running on the mobile terminal comprises:
acquiring the running state of an application program currently running by the mobile terminal, wherein the running state comprises whether a preset function of the application program monitors an acceleration parameter detected by the accelerometer or not;
if the preset function of any application program currently running by the mobile terminal monitors the acceleration parameter detected by the accelerometer, prohibiting controlling the screen locking of the mobile terminal;
and if the preset functions of all the application programs currently running on the mobile terminal do not monitor the acceleration parameters detected by the accelerometer, controlling the screen locking of the mobile terminal.
4. The method according to claim 1, wherein the acceleration parameters include acceleration parameters of the mobile terminal in three preset axes, and comparing the acceleration parameters with a preset acceleration threshold includes:
comparing the acceleration parameter on each axis with the corresponding acceleration threshold, wherein if the acceleration parameter on any axis is greater than the corresponding acceleration threshold, the comparison result is determined that the acceleration parameter is greater than the acceleration threshold; or
And comparing the acceleration parameters on the designated axis with the corresponding acceleration threshold values.
5. The method according to claim 3, wherein if the preset function of any application program currently running in the mobile terminal monitors the acceleration parameter detected by the accelerometer, after prohibiting control of the mobile terminal to lock the screen, the method further comprises:
and controlling the mobile terminal to execute the preset function of the application program according to the action indicated by the acceleration parameter.
6. A screen locking apparatus of a mobile terminal, the mobile terminal including an accelerometer, the apparatus comprising:
the monitoring module is used for monitoring the acceleration parameters detected by the accelerometer;
the comparison module is used for comparing the acceleration parameter with a preset acceleration threshold;
and the determining module is used for determining whether to control the screen locking of the mobile terminal according to the comparison result and the running state of the application program currently running by the mobile terminal.
7. The apparatus of claim 6, wherein the determining module comprises:
the forbidding submodule is used for forbidding to control the screen locking of the mobile terminal if the comparison result shows that the acceleration parameter is smaller than or equal to the acceleration threshold;
and the screen locking sub-module is used for determining whether to control the screen locking of the mobile terminal according to the running state of the currently running application program of the mobile terminal if the comparison result shows that the acceleration parameter is greater than the acceleration threshold.
8. The apparatus of claim 7, wherein the screen lock sub-module comprises:
the acquiring unit is used for acquiring the running state of an application program currently running by the mobile terminal, wherein the running state comprises whether a preset function of the application program monitors an acceleration parameter detected by the accelerometer or not;
the prohibiting unit is used for prohibiting controlling the screen locking of the mobile terminal if the acceleration parameter detected by the accelerometer is monitored by the preset function of any application program currently running by the mobile terminal;
and the screen locking unit is used for controlling the screen locking of the mobile terminal if the preset functions of all the application programs currently running of the mobile terminal do not monitor the acceleration parameters detected by the accelerometer.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute the screen locking method of the mobile terminal according to any one of claims 1 to 5.
10. A processor, characterized in that the processor is configured to execute a program, wherein the program executes to execute the screen locking method of the mobile terminal according to any one of claims 1 to 5.
CN201910817969.0A 2019-08-30 2019-08-30 Screen locking method and device of mobile terminal Pending CN110602306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910817969.0A CN110602306A (en) 2019-08-30 2019-08-30 Screen locking method and device of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910817969.0A CN110602306A (en) 2019-08-30 2019-08-30 Screen locking method and device of mobile terminal

Publications (1)

Publication Number Publication Date
CN110602306A true CN110602306A (en) 2019-12-20

Family

ID=68856629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910817969.0A Pending CN110602306A (en) 2019-08-30 2019-08-30 Screen locking method and device of mobile terminal

Country Status (1)

Country Link
CN (1) CN110602306A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980516A (en) * 2010-10-26 2011-02-23 浙江大学 Method for locking and unlocking screen of mobile phone with Android system
CN102624984A (en) * 2012-03-20 2012-08-01 深圳市金立通信设备有限公司 System and method for locking display screen by overturning mobile phone
CN104104784A (en) * 2013-04-10 2014-10-15 中兴通讯股份有限公司 Method and system for automatic screen locking of terminal
CN104298446A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Screen control method and device of mobile terminal and mobile terminal
US20160364564A1 (en) * 2015-06-11 2016-12-15 Samsung Electronics Co., Ltd. Lock screen output controlling method and electronic device for supporting the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980516A (en) * 2010-10-26 2011-02-23 浙江大学 Method for locking and unlocking screen of mobile phone with Android system
CN102624984A (en) * 2012-03-20 2012-08-01 深圳市金立通信设备有限公司 System and method for locking display screen by overturning mobile phone
CN104104784A (en) * 2013-04-10 2014-10-15 中兴通讯股份有限公司 Method and system for automatic screen locking of terminal
CN104298446A (en) * 2014-09-30 2015-01-21 北京金山安全软件有限公司 Screen control method and device of mobile terminal and mobile terminal
US20160364564A1 (en) * 2015-06-11 2016-12-15 Samsung Electronics Co., Ltd. Lock screen output controlling method and electronic device for supporting the same

Similar Documents

Publication Publication Date Title
EP3401779B1 (en) Method and apparatus for invoking function in application
US10075582B2 (en) Terminal control method and apparatus, and terminal
CN104090708B (en) The control method of portable intelligent terminal and device
CN102937869B (en) The method and apparatus of a kind of terminal device trigging control instruction
KR102150778B1 (en) Information image display method and device
US9965086B2 (en) Method for enabling function module of terminal, and terminal device
CN104468950A (en) Method and device for controlling terminal
JP6616896B2 (en) Fingerprint recognition method and electronic device
CN109254809B (en) Differentiated application loading method and device based on face recognition and terminal equipment
CN108111687A (en) Display control method and related product
CN103593140A (en) Method and terminal for touch screen terminal screen locking
CN103809895B (en) It is a kind of can dynamic generation button mobile terminal and method
EP2669835B1 (en) Mobile information terminal and gripping-feature learning method
CN104318185A (en) Application control method, application control equipment and mobile terminal
CN102999280A (en) Mobile terminal equipment and method for unlocking screen thereof
CN109325334A (en) A kind of touch control terminal control method and touch control terminal
CN110099167B (en) Unlocking method and device, terminal equipment and storage medium
CN108664145A (en) Interface display control method and device, storage medium and mobile terminal
CN107437018B (en) Mobile terminal, control method thereof, and computer-readable storage medium
CN110602306A (en) Screen locking method and device of mobile terminal
CN106959743B (en) Control method and electronic equipment
CN109213537A (en) Starting control method, device, storage medium and the terminal of application program
CN105512526B (en) The quick release method and device of terminal device
CN103248765A (en) Method and terminal for avoiding error touch in case of calling
CN110825293A (en) Control method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191220