CN111316216B - Screen locking mode switching method, terminal and computer readable storage medium - Google Patents

Screen locking mode switching method, terminal and computer readable storage medium Download PDF

Info

Publication number
CN111316216B
CN111316216B CN201780095895.3A CN201780095895A CN111316216B CN 111316216 B CN111316216 B CN 111316216B CN 201780095895 A CN201780095895 A CN 201780095895A CN 111316216 B CN111316216 B CN 111316216B
Authority
CN
China
Prior art keywords
screen locking
locking mode
terminal
current
screen
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.)
Active
Application number
CN201780095895.3A
Other languages
Chinese (zh)
Other versions
CN111316216A (en
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.)
Shenzhen Transsion Communication Co Ltd
Original Assignee
Shenzhen Transsion Communication 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 Shenzhen Transsion Communication Co Ltd filed Critical Shenzhen Transsion Communication Co Ltd
Publication of CN111316216A publication Critical patent/CN111316216A/en
Application granted granted Critical
Publication of CN111316216B publication Critical patent/CN111316216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • G06F21/46Structures or tools for the administration of authentication by designing passwords or checking the strength of passwords
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a screen locking mode switching method, which comprises the following steps: acquiring the current residual electric quantity of the terminal; determining a current screen locking mode corresponding to the current residual electric quantity according to a preset corresponding relation between the residual electric quantity and the screen locking mode; and receiving a screen locking instruction, and locking the screen of the terminal according to the current screen locking mode. The invention also discloses a terminal and a computer readable storage medium. The invention has good reminding effect, can effectively remind a user to timely charge or timely adjust the service condition of the terminal or close unnecessary background application, further improve the endurance capacity of the terminal battery and improve the satisfaction degree of the user on the endurance capacity of the terminal battery.

Description

Screen locking mode switching method, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of electronic devices, and in particular, to a screen locking method, a terminal, and a computer readable storage medium.
Background
In consideration of privacy protection, misoperation avoidance and the like, the terminal is provided with a screen locking mode, the screen locking mode comprises screen locking modes such as a coded lock, a pattern lock and a fingerprint lock, and the popularization of the screen locking mode and the multiple of the screen locking modes enable the screen locking function to be further developed.
The terminal endurance is always an important factor affecting the user experience, and besides the performance strength of the terminal battery, the use habit of the user is also a big factor affecting the terminal endurance, so that the terminal is required to make a certain prompt to the user, so that the user can adjust the use plan of the terminal to determine when to charge. In the existing design, the power grid at the top end of the terminal screen is generally used for prompting, and the prompting mode has the following problems: the prompting effect is insufficient, the user cannot attach attention enough, and the user cannot influence the terminal use plan, so that the terminal cannot be charged in time or unnecessary power consumption application is reduced, the terminal endurance is damaged, and further the satisfaction degree of the user on the terminal endurance is reduced.
Disclosure of Invention
The invention mainly aims to provide a screen locking mode switching method, which aims at solving the technical problems that the conventional electric quantity prompting mode is insufficient in prompting effect, so that a terminal cannot be charged in time or unnecessary power consumption application is reduced, and the cruising ability of the terminal is damaged.
In order to achieve the above object, the present invention provides a method for switching a screen locking mode, where the method for switching a screen locking mode includes:
acquiring the current residual electric quantity of the terminal;
determining a current screen locking mode corresponding to the current residual electric quantity according to a preset corresponding relation between the residual electric quantity and the screen locking mode;
and receiving a screen locking instruction, and locking the screen of the terminal according to the current screen locking mode.
In an optional implementation manner, the step of locking the screen of the terminal according to the current screen locking mode includes:
and processing the background application according to the corresponding relation between the preset screen locking mode and the application cleaning intensity corresponding to the current screen locking mode.
In an optional implementation manner, the step of locking the screen of the terminal according to the current screen locking mode includes:
counting the duration of the terminal in a screen locking state, and judging whether the duration is greater than a preset threshold;
and if the duration is longer than a preset threshold, executing the step of processing the background application according to the application cleaning intensity corresponding to the current screen locking mode.
In an optional implementation manner, the step of determining the current screen locking mode corresponding to the current remaining power includes:
if an editing instruction of the available state of the editing background application input by a user is received, processing the background application according to the editing instruction;
and if the editing instruction of the available state of the editing background application input by the user is not received, executing the step of processing the background application according to the application cleaning strength corresponding to the current screen locking mode.
In an optional implementation manner, the step of processing the background application according to the application cleaning strength corresponding to the current screen locking mode according to the preset corresponding relation between the screen locking mode and the application cleaning strength includes:
acquiring a preset white list, and determining a processing-free application in a background application according to the white list;
and processing the applications except the processing-free application in the background application according to the application cleaning intensity corresponding to the current screen locking mode.
In an optional embodiment, the step of obtaining the current remaining power of the terminal includes:
judging whether the current residual electric quantity reaches a critical value or not;
if the current residual electric quantity reaches a critical value, executing the step of determining a current screen locking mode corresponding to the current residual electric quantity;
and if the current residual electric quantity does not reach the critical value, executing the step of acquiring the current residual electric quantity of the terminal.
In an alternative embodiment, the step of receiving the screen locking instruction includes:
outputting a screen locking mode switching prompt, and judging whether the user agrees to switch the screen locking mode according to a command input by the user based on the screen locking mode switching prompt;
if the user agrees to switch the screen locking mode, the screen locking of the terminal is carried out according to the current screen locking mode;
and if the user does not agree to switch the screen locking mode, locking the screen according to the original screen locking mode.
In an optional implementation manner, the step of locking the screen of the terminal according to the current screen locking mode includes:
and according to the corresponding relation between the preset screen locking mode and the screen locking wallpaper, adopting the screen locking wallpaper corresponding to the current screen locking mode to lock the screen of the terminal.
In addition, to achieve the above object, the present invention also provides a terminal including: the system comprises a processor, a memory and a screen locking mode switching program stored on the memory, wherein the screen locking mode switching program realizes the steps of the method when being executed by the processor.
In addition, in order to achieve the above object, the present invention further provides a computer readable storage medium, on which a screen lock mode switching program is stored, which when executed by a processor, implements the steps of the method described above.
According to the screen locking mode switching method provided by the embodiment of the invention, the current residual electric quantity of the terminal is obtained, the current screen locking mode corresponding to the current residual electric quantity is determined according to the corresponding relation between the preset residual electric quantity and the screen locking mode, the current residual electric quantity condition of the terminal is related to the screen locking mode, when the terminal receives a screen locking instruction, the screen locking is carried out on the terminal according to the current screen locking mode, so that the current screen locking mode of the terminal can reflect the electric quantity use condition, and because the screen locking times are more, and because the screen locking is the first threshold of the user for using the terminal, the number of times of the user to be reminded is more, the reminding strength is higher, the user can be effectively reminded/reminded of timely charging or timely adjusting the use condition of the terminal or closing unnecessary background application, the continuous voyage capability of the terminal battery is further improved, and the satisfaction degree of the user to the terminal battery voyage capability is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware architecture of a terminal implementing various embodiments of the present invention;
FIG. 2 is a flowchart illustrating a screen lock switching method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a screen lock switching method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a screen lock switching method according to the present invention;
fig. 5 is a flowchart of a fifth embodiment of a screen lock mode switching method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present invention, and have no specific meaning per se. Thus, "module," "component," or "unit" may be used in combination.
As shown in fig. 1, fig. 1 is a schematic diagram of a hardware structure of a terminal implementing various embodiments of the present invention.
The terminal of the embodiment of the invention can be implemented in various forms, including a PC, a mobile phone, a tablet computer, a notebook computer, a palm computer, a personal digital assistant (Personal Digital Assistant, PDA), a portable media player (Portable Media Player, PMP), and a wearable device, such as an AR/VR device with networking function, an intelligent bracelet, a pedometer and other mobile terminals.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), an input unit such as a Keyboard (Keyboard), a touch screen, a camera (including an AR/VR device), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface, bluetooth interface, probe interface, 3G/4G/5G networking communication interface, etc.). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above. Optionally, the terminal may further include an RF (Radio Frequency) circuit, an audio circuit, a wifi module, and the like.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, a screen lock mode switching program may be included in a memory 1005 as a computer storage medium, and the processor 1001 may call the screen lock mode switching program stored in the memory 1005 and perform the following operations:
acquiring the current residual electric quantity of the terminal;
determining a current screen locking mode corresponding to the current residual electric quantity according to a preset corresponding relation between the residual electric quantity and the screen locking mode;
and receiving a screen locking instruction, and locking the screen of the terminal according to the current screen locking mode.
Further, the processor 1001 may call the screen locking mode switching program stored in the memory 1005, and further perform the following operations:
the step of locking the screen of the terminal according to the current screen locking mode comprises the following steps:
and processing the background application according to the corresponding relation between the preset screen locking mode and the application cleaning intensity corresponding to the current screen locking mode.
Further, the processor 1001 may call the screen locking mode switching program stored in the memory 1005, and further perform the following operations:
the step of locking the screen of the terminal according to the current screen locking mode comprises the following steps:
counting the duration of the terminal in a screen locking state, and judging whether the duration is greater than a preset threshold;
and if the duration is longer than a preset threshold, executing the step of processing the background application according to the application cleaning intensity corresponding to the current screen locking mode.
Further, the processor 1001 may call the screen locking mode switching program stored in the memory 1005, and further perform the following operations:
the step of determining the current screen locking mode corresponding to the current residual electric quantity comprises the following steps:
if an editing instruction of the available state of the editing background application input by a user is received, processing the background application according to the editing instruction;
and if the editing instruction of the available state of the editing background application input by the user is not received, executing the step of processing the background application according to the application cleaning strength corresponding to the current screen locking mode.
The step of processing the background application according to the corresponding relation between the preset screen locking mode and the application cleaning intensity corresponding to the current screen locking mode comprises the following steps:
acquiring a preset white list, and determining a processing-free application in a background application according to the white list;
and processing the applications except the processing-free application in the background application according to the application cleaning intensity corresponding to the current screen locking mode.
Further, the processor 1001 may call the screen locking mode switching program stored in the memory 1005, and further perform the following operations:
the step of obtaining the current residual electric quantity of the terminal comprises the following steps:
judging whether the current residual electric quantity reaches a critical value or not;
if the current residual electric quantity reaches a critical value, executing the step of determining a current screen locking mode corresponding to the current residual electric quantity;
and if the current residual electric quantity does not reach the critical value, executing the step of acquiring the current residual electric quantity of the terminal.
Further, the processor 1001 may call the screen locking mode switching program stored in the memory 1005, and further perform the following operations:
the step of receiving the screen locking instruction comprises the following steps:
outputting a screen locking mode switching prompt, and judging whether the user agrees to switch the screen locking mode according to a command input by the user based on the screen locking mode switching prompt;
if the user agrees to switch the screen locking mode, the screen locking of the terminal is carried out according to the current screen locking mode;
and if the user does not agree to switch the screen locking mode, locking the screen according to the original screen locking mode.
Further, the processor 1001 may call the screen locking mode switching program stored in the memory 1005, and further perform the following operations:
the step of locking the screen of the terminal according to the current screen locking mode comprises the following steps:
and according to the corresponding relation between the preset screen locking mode and the screen locking wallpaper, adopting the screen locking wallpaper corresponding to the current screen locking mode to lock the screen of the terminal.
Referring to fig. 2, in a first embodiment of the screen locking mode switching method of the present invention, the screen locking mode switching method includes:
step S10, obtaining the current residual electric quantity of the terminal;
the step of acquiring the current residual electric quantity of the terminal is executed by the terminal processor, the current residual electric quantity of the terminal can be acquired in real time, or the current residual electric quantity of the terminal can be acquired at intervals of preset time, such as fixed equidistant time intervals or at preset time intervals, or the step of acquiring the current residual electric quantity of the terminal can be triggered to be executed by the terminal processor when the electric quantity of the terminal reaches preset conditions, such as when the electric quantity of the terminal changes greatly, namely, the electric quantity consumption speed of the terminal is higher, the current residual electric quantity of the terminal is triggered to be acquired by the terminal processor, or the current residual electric quantity of the terminal can be triggered to be acquired when a user controls the terminal to enter a screen locking state or the terminal automatically enters the screen locking state.
Step S11, determining a current screen locking mode corresponding to the current residual electric quantity according to a preset corresponding relation between the residual electric quantity and the screen locking mode;
the corresponding relation exists between the residual electric quantity and the screen locking mode, the corresponding relation is in a mapping table structure, and the mapping table structure can be preset by a terminal system, can be set by a user independently, or can be set by a screen locking mode switching program developer. The screen locking mode comprises, but is not limited to, a coded lock, a pattern lock, a fingerprint lock and the like. The residual electric quantity is different, and the corresponding screen locking modes are also different. In one embodiment, the following table 1 may be used:
residual electric quantity Screen locking mode
100%-40% Fingerprint lock
39%-11% Pattern lock
10%-0 Puzzle lock
And step S12, receiving a screen locking instruction, and locking the screen of the terminal according to the current screen locking mode.
When a user inputs a screen locking instruction, such as pressing a terminal on-off key, or when the user does not use the terminal for a long time, the terminal processor triggers the screen locking instruction, and the terminal automatically enters a screen locking mode, and at this time, the screen is locked according to a current screen locking mode corresponding to the current residual electric quantity.
According to the method, the current residual capacity of the terminal is obtained, the current screen locking mode corresponding to the current residual capacity is determined according to the corresponding relation between the preset residual capacity and the screen locking mode, the current residual capacity condition of the terminal is related to the screen locking mode, when the terminal receives a screen locking instruction, the screen is locked to the terminal according to the current screen locking mode, so that the current screen locking mode of the terminal can reflect the electricity use condition.
Specifically, the step S10 includes:
step S13, judging whether the current residual electric quantity reaches a critical value or not;
step S14, if the current residual electric quantity reaches a critical value, executing the step of determining a current screen locking mode corresponding to the current residual electric quantity;
and step S15, if the current residual electric quantity does not reach the critical value, executing the step of acquiring the current residual electric quantity of the terminal.
The critical value refers to the electric quantity value which is about to change in the screen locking mode, and in the examples shown in table 1, 39% and 10% are critical values, when the residual electric quantity is less than 39%, the screen locking mode is changed from the fingerprint lock to the pattern lock, and when the residual electric quantity is less than 10%, the screen locking mode is changed from the pattern lock to the coded lock. At this time, the screen locking mode should be changed, and the screen locking mode corresponding to the current residual electric quantity needs to be further determined, that is, the step of determining the current screen locking mode corresponding to the current residual electric quantity is executed. If the current residual electric quantity does not reach the critical value, the screen locking mode does not need to be changed, and the screen locking mode corresponding to the current residual electric quantity does not need to be determined, namely the step of determining the current screen locking mode corresponding to the current residual electric quantity does not need to be executed, and the step of obtaining the current residual electric quantity of the terminal is continuously executed until the current residual electric quantity reaches the critical value.
According to the method, when the current residual electric quantity is detected to reach the critical value, the current screen locking mode corresponding to the current residual electric quantity is determined, instead of immediately determining the current screen locking mode corresponding to the current residual electric quantity after the current residual electric quantity of the terminal is obtained, so that the terminal can obtain the screen locking mode corresponding to the current residual electric quantity only when the screen locking mode is required to be switched, idle work of the terminal is reduced, electric quantity is saved, the current residual electric quantity can be timely obtained when the electric quantity reaches the critical value of the screen locking mode required to be switched, and the screen locking mode is timely switched.
Further, as shown in fig. 3, in a second embodiment of the screen locking mode switching method of the present invention, based on the first embodiment, the step S12 includes:
and step S20, processing background application according to the corresponding relation between the preset screen locking mode and the application cleaning intensity corresponding to the current screen locking mode.
The application clean-up intensity can be characterized by: the number of background applications that may be reserved, or the background application functionality that may be reserved, in some embodiments, the application cleaning strength may characterize a combination of the two.
Specifically, in one embodiment, the number of background applications that can be preserved is characterized by the applied cleaning intensity, which is, for example, divided into primary, secondary, and tertiary. The number of the reserved background applications corresponding to the first level is 10, and all the current background applications can be reserved basically by the first level; the number of the secondary corresponding reserved background applications is 5, and the secondary reserved part of the background applications can be the application programs commonly used by users or the application programs with lower power consumption; the number of the reserved background applications corresponding to the third level is 0, and all unnecessary background applications (the necessary background applications are system programs required by the normal operation of the terminal) are closed by the third level.
In another embodiment, the application cleaning intensity refers to a retainable background application function, for example, the application cleaning intensity is divided into a first stage, a second stage, and a third stage. For a browser: when the application cleaning strength is at the first level, the browser can normally use all functions including playing audio and video, displaying pictures, downloading in the background and the like; when the application cleaning strength is two-level, the functions of playing audio and video and downloading in the background of the browser are forbidden; when the application cleaning strength is three-level, the picture display function of the browser is forbidden, and only characters can be loaded and displayed.
In one embodiment, application cleaning strength refers to a combination of the number of retainable background applications and the retainable background application functionality. For example, the applied cleaning intensity is divided into a first stage, a second stage, and a third stage. When the application cleaning strength is at a first level, only partial application program functions are limited, and any application program is not completely closed; when the application cleaning strength is two-level, reserving common application programs, limiting functions and closing other very common application programs; when the application cleaning intensity is three-level, all application programs are closed. The above example is just one implementation and other combinations are possible.
In other embodiments, the application cleaning strength characterizes specific applications that may be retained. Specifically, for example, the applied cleaning intensity is classified into a first stage, a second stage, and a third stage. When the application cleaning strength is at a first level, closing an application program with the electric quantity consumption larger than a first preset value; when the application cleaning strength is two-level, closing an application program with the electric quantity consumption larger than a second preset value; and when the application cleaning intensity is three-level, closing the application program with the electric quantity consumption larger than a third preset value. The specific application program can also be determined according to the frequency of use of the user, such as common application programs, unusual application programs and the like.
A corresponding relation exists between the screen locking mode and the application cleaning strength, the corresponding relation can be in a mapping table structure, can be preset by a terminal system, can be set by a user independently, or can be set by a screen locking mode switching program developer. Different residual electric quantity corresponds to different screen locking modes, and different screen locking modes correspond to different application cleaning intensities. In one embodiment, as shown in table 2 below.
Residual electric quantity Screen locking mode Applying cleaning intensity
100%-40% Fingerprint lock First level
39%-11% Pattern lock Second-level
10%-0 Puzzle lock Three stages
Under different screen locking modes, the reserved background application quantity or reserved background application functions in the background application follow the regulation of application cleaning intensity.
Taking an embodiment as an example (the corresponding relation of the residual electric quantity, the application cleaning strength and the screen locking mode is as shown in the table above): the application cleaning strength only characterizes the number of the reserved background applications, and is divided into a first stage, a second stage and a third stage. The number of the reserved background applications corresponding to the first level is 10, the number of the reserved background applications corresponding to the second level is 5, the number of the reserved background applications corresponding to the third level is 0, and all the unnecessary background applications (the necessary background applications are system programs required for normal operation of the terminal) are closed by the third level. The current residual electric quantity (residual electric quantity) obtained by the terminal is 20%, the corresponding screen locking mode is pattern locking, the application cleaning strength is two-level, the corresponding reserved background application quantity is 5, if the background application quantity is less than or equal to 5 in the screen locking mode, no operation is required to be performed on the background application, and if the background application quantity is greater than 5, some background applications are required to be closed, and only 5 background applications are reserved.
It should be noted that, in this embodiment, when a user performs a screen locking operation (for example, presses a switch key) or the terminal automatically enters a screen locking state, that is, when the terminal receives a screen locking instruction, the terminal limits the number of background applications according to the application cleaning strength, and if the terminal does not enter the screen locking state, even if the application cleaning strength of the terminal changes greatly (for example, the residual electric quantity changes from 30% to 9% and the application cleaning strength changes to three levels), the current background application of the terminal remains completely and does not change. That is, after screen locking, background applications can be processed according to application cleaning intensity, so that the electricity consumption speed is reduced, and electric energy is saved.
According to the method, the corresponding relation between the screen locking mode and the application cleaning intensity is preset, the screen locking mode is associated with the application cleaning intensity, and then the electric quantity condition is associated with the application cleaning intensity, so that when the terminal enters the screen locking state or is about to enter the screen locking state, the corresponding application cleaning intensity is determined according to the current screen locking mode or the current residual electric quantity condition, the electric quantity is further reasonably saved, the more the number of times the user uses the terminal, the more the number of times the terminal enters the screen locking state, the screen locking mode is combined with the background application cleaning, the background application can be cleaned timely, and the user does not need to execute redundant operations.
Further, as shown in fig. 4, in a third embodiment of the screen locking switching method according to the present invention, based on the second embodiment, the step S12 includes:
step S30, counting the duration of the terminal in the screen locking state;
step S31, judging whether the duration is greater than a preset threshold;
step S32, if the duration time is longer than a preset threshold value, executing the step of processing background application according to the corresponding relation between the preset screen locking mode and the application cleaning intensity corresponding to the current screen locking mode;
step S33, if the duration is less than the preset threshold, maintaining the normal operation of the background application,
and counting the duration from the moment of locking the screen of the terminal according to the current screen locking mode, and counting the duration of the screen locking state of the terminal. The preset threshold value can be preset by a terminal system, can be set by a user independently, or can be set by a screen locking mode switching program developer. If the duration time is longer than the preset threshold, the duration time of the terminal in the screen locking state is not short, the user does not use the terminal in a short time, and at the moment, a plurality of background applications can be closed or function restriction is carried out; and if the duration is smaller than a preset threshold, not executing the step of processing the background application according to the application cleaning intensity corresponding to the current screen locking mode, and maintaining the normal operation of the background application.
According to the method, the device and the system, the duration of the screen locking state of the terminal is counted, the step of processing the background application according to the application cleaning intensity corresponding to the current screen locking mode is executed when the duration is longer than the preset threshold, the background application can be processed according to the application cleaning intensity corresponding to the current screen locking mode at proper time when the terminal is in the screen locking state, and the normal operation of the background application can be maintained under the condition that a user does not use the terminal for a short time, so that the use experience of the user is not affected.
Further, in a fourth embodiment of the screen locking switching method according to the present invention, based on the second embodiment, the step S11 includes:
step S40, if an editing instruction of the available state of the editing background application input by a user is received, processing the background application according to the editing instruction;
and step S41, if an editing instruction of editing the available state of the background application input by a user is not received, executing the step of processing the background application according to the application cleaning strength corresponding to the current screen locking mode.
In one embodiment, the terminal processor outputs a list of currently running background applications that the terminal can edit. The background application is available, unavailable and partially available, and the editing instruction for editing the available state of the background application is a setting instruction which is input by a user aiming at a specific background application and is related to the available/unavailable/partially available of the background application, and the user can input the editing instruction by himself as required, wherein the editing instruction can be a selection option mode.
After receiving a screen locking instruction and locking the screen of the terminal according to the current screen locking mode, judging whether an editing instruction of the available state of the editing background application input by a user is received, and if the editing instruction is received, processing the background application by the terminal according to the editing instruction.
And if the terminal is locked according to the current screen locking mode and an editing instruction for editing the available state of the background application is not received all the time, processing the background application according to a default setting, namely executing the step of processing the background application according to the application cleaning strength corresponding to the current screen locking mode.
In some embodiments, the user only edits some background applications, and the corresponding application edited by the user can be directly processed according to the editing instruction input by the user; and for the background application which is not edited by the user, the background application which is not edited by the user can be directly processed according to the application cleaning strength corresponding to the current screen locking mode.
According to the method, whether the editing instruction of the available state of the editing background application input by the user is received or not is judged, when the editing instruction input by the user is received, the background application is processed according to the editing instruction input by the user, so that the user can edit the available state of the background application according to the self requirement, and the energy-saving design of the terminal is more in line with the requirement of the user; and if the editing instruction of the available state of the editing background application input by the user is not received, executing the step of processing the background application according to the application cleaning strength corresponding to the current screen locking mode, namely processing the background application which is not edited by the user according to the default setting of the system. By distinguishing the background application processing modes, the background application can obtain better processing modes, and energy conservation and user experience are considered.
Further, as shown in fig. 5, in a fifth embodiment of the screen locking switching method according to the present invention, based on the second embodiment, the step S20 includes:
step S50, a preset white list is obtained, and a processing-free application in a background application is determined according to the white list;
and step S51, processing the application except the processing-free application in the background application according to the application cleaning strength corresponding to the current screen locking mode.
The preset white list can be preset by a terminal system, can be set by a user independently, or can be set by a screen locking mode switching program developer. The processing-free application in the background application refers to a background application which is not processed according to the application cleaning strength.
According to the embodiment, through the setting of the white list, the terminal can always keep the background application necessary for the normal operation of the system, can also keep the background application which the user hopes to keep all the time, and can save the electric quantity, the normal operation of the system and the user requirement.
Further, in a sixth embodiment of the screen locking mode switching method of the present invention, based on the first embodiment, the step of receiving the screen locking instruction in step S12 includes:
step S60, outputting a screen locking mode switching prompt, and judging whether the user agrees to switch the screen locking mode according to a command input by the user based on the screen locking mode switching prompt;
step S61, if the user agrees to switch the screen locking mode, the screen locking of the terminal is performed according to the current screen locking mode;
step S62, if the user does not agree to switch the screen locking mode, the screen is locked according to the original screen locking mode.
After receiving the screen locking instruction, the terminal outputs a screen locking mode switching prompt, and the user can understand that the current residual electric quantity condition is at a critical value for switching the screen locking mode. However, the user may not wish to switch the screen locking mode, in one embodiment, before the terminal enters the screen locking state, the user may determine whether to switch the screen locking mode, and if the user agrees, the screen locking mode is switched; if the user does not agree to switch the screen locking mode, the screen is locked according to the original screen locking mode, in one embodiment, even if the screen is locked according to the original screen locking mode, the application cleaning strength is still determined according to the current residual electric quantity condition, and in another embodiment, the application cleaning strength is determined according to the original screen locking mode.
According to the embodiment, before the terminal enters the screen locking state, the screen locking mode switching prompt is output, whether the screen locking mode is switched or not is selected by a user, and then the user requirements are met more, and the user experience is improved.
Further, in a seventh embodiment of the screen locking switching method according to the present invention, based on the first embodiment, the step S12 includes:
and step S70, according to the corresponding relation between the preset screen locking mode and the screen locking wallpaper, adopting the screen locking wallpaper corresponding to the current screen locking mode to lock the screen of the terminal.
The corresponding relation exists between the screen locking mode and the screen locking wall paper, and the corresponding relation can be a mapping table, can be preset by a terminal system, can be set by a user independently, or can be set by a screen locking mode switching program developer. Different residual electric quantity corresponds to different screen locking modes, and different screen locking modes correspond to different screen locking wallpaper.
The screen locking wallpaper can be static wallpaper, dynamic wallpaper in a fixed mode or dynamic wallpaper with change along with external touch, the three wallpaper consumes electric quantity and presents an increasing trend, when the residual electric quantity is more, the screen locking wallpaper with high electric quantity can be adopted for screen locking display, the display effect of a terminal can be enriched, and the user experience is improved; when the residual electric quantity is less, the screen locking wallpaper with low power consumption can be adopted for screen locking display, and the electric quantity can be saved. Table 3 is one embodiment:
according to the embodiment, when the residual electric quantity of the terminal is different, the screen locking wallpaper with different electric quantities is adopted, and when the electric quantity of the terminal is sufficient, the wallpaper with large electric quantity and good display effect is adopted, so that the use experience of a user can be improved; when the terminal has insufficient electric quantity, wallpaper with low power consumption is adopted, so that the electric quantity can be saved. Compromise display effect and electric quantity saving, promote user's use experience.
In addition, an embodiment of the present invention further provides a computer readable storage medium, where a screen locking mode switching program is stored, and the screen locking mode switching program implements the steps described in the foregoing embodiments when executed by a processor, and therefore related steps are detailed in the foregoing embodiments and are not repeated.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or partly in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, including instructions for causing a terminal device (which may be a fixed terminal, such as an intelligent device for internet of things, including intelligent air conditioner, intelligent electric lamp, intelligent power supply, intelligent router, etc., or a mobile terminal, including a smart phone, a wearable networked AR/VR device, an intelligent sound box, an automatic driving car, etc.), to perform the method according to the embodiments of the present invention.
The foregoing description of the preferred embodiments of the invention is not intended to limit the scope of the invention, but rather to make use of the equivalent structures or equivalent flow modifications or straight lines of the present specification and drawingsAre used in other related technical fields, and are also included in the protection scope of the invention

Claims (7)

1. The screen locking mode switching method is characterized by comprising the following steps of:
acquiring the current residual electric quantity of the terminal;
determining a current screen locking mode corresponding to the current residual electric quantity;
receiving a screen locking instruction, and locking the screen of the terminal according to the current screen locking mode;
processing background application according to the application cleaning intensity corresponding to the current screen locking mode;
judging whether the current residual electric quantity reaches a critical value or not;
if the current residual electric quantity reaches a critical value, executing the step of determining a current screen locking mode corresponding to the current residual electric quantity; and/or if the current residual electric quantity does not reach the critical value, executing the step of acquiring the current residual electric quantity of the terminal;
counting the duration of the terminal in a screen locking state, and judging whether the duration is greater than a preset threshold;
and if the duration is longer than a preset threshold, executing the step of processing the background application according to the application cleaning intensity corresponding to the current screen locking mode.
2. The method of claim 1, wherein the step of determining the current screen locking mode corresponding to the current remaining power comprises:
if an editing instruction for editing the available state of the background application is received, processing the background application according to the editing instruction;
and/or the number of the groups of groups,
and if the editing instruction for editing the available state of the background application is not received, executing the step of processing the background application according to the application cleaning strength corresponding to the current screen locking mode.
3. The method of claim 1, wherein the step of processing the background application according to the application cleaning strength corresponding to the current lock screen mode comprises:
acquiring a preset white list, and determining a processing-free application in a background application according to the white list;
and processing the applications except the processing-free application in the background application according to the application cleaning intensity corresponding to the current screen locking mode.
4. A method as claimed in any one of claims 1 to 3, wherein the step of receiving a lock screen instruction is followed by:
outputting a screen locking mode switching prompt, and judging whether to agree to switch the screen locking mode according to an instruction input based on the screen locking mode switching prompt;
if the screen locking mode is agreed to be switched, the screen of the terminal is locked according to the current screen locking mode;
and/or the number of the groups of groups,
and if the screen locking mode is not agreed to be switched, the screen is locked according to the original screen locking mode.
5. A method according to any one of claims 1 to 3, wherein the step of locking the terminal according to the current screen locking mode comprises:
and carrying out screen locking display on the terminal by adopting the screen locking wallpaper corresponding to the current screen locking mode.
6. A terminal, the terminal comprising: a processor, a memory, and a screen lock mode switching program stored on the memory, which when executed by the processor, implements the steps of the screen lock mode switching method according to any one of claims 1 to 5.
7. A computer-readable storage medium, wherein a screen-lock mode switching program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the screen-lock mode switching method according to any one of claims 1 to 5.
CN201780095895.3A 2017-10-13 2017-10-13 Screen locking mode switching method, terminal and computer readable storage medium Active CN111316216B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/106033 WO2019071565A1 (en) 2017-10-13 2017-10-13 Screen locking manner switching method, terminal, and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111316216A CN111316216A (en) 2020-06-19
CN111316216B true CN111316216B (en) 2023-10-03

Family

ID=66101117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780095895.3A Active CN111316216B (en) 2017-10-13 2017-10-13 Screen locking mode switching method, terminal and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111316216B (en)
WO (1) WO2019071565A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN106650415A (en) * 2016-09-14 2017-05-10 上海斐讯数据通信技术有限公司 Password updating method and system
CN106896894A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 Terminal power management method and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298336B (en) * 2013-07-19 2018-09-14 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
EP3629564B1 (en) * 2014-03-12 2021-03-10 Huawei Device Co., Ltd. Screen locking method and mobile terminal
CN104133615B (en) * 2014-07-30 2018-03-09 深圳市金立通信设备有限公司 A kind of processing method of terminal screen lock interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN106896894A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 Terminal power management method and terminal
CN106650415A (en) * 2016-09-14 2017-05-10 上海斐讯数据通信技术有限公司 Password updating method and system

Also Published As

Publication number Publication date
WO2019071565A1 (en) 2019-04-18
CN111316216A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
TWI634420B (en) Terminal device and operating method thereof
US8117471B2 (en) Power management method for handheld electronic device using G-sensor
CN102306095A (en) Application management method and terminal
CN108363343B (en) Household appliance control method, system and computer storage medium
CN110176643B (en) Charging method, power supply management equipment and terminal equipment
JP2018501569A (en) System and method for peak dynamic power management in portable computing devices
CN103607758A (en) Terminal screen power saving processing method, device thereof and terminal
CN106776036A (en) A kind of resource allocation methods and device
CN108196482B (en) Power consumption control method and device, storage medium and electronic equipment
CN104684053A (en) Method and system for prolonging use duration of batteries of electronic equipment in low-power state
CN107943269B (en) Scheduling job control method, device, terminal equipment and storage medium
CN106412313A (en) Method and system for automatically adjusting screen display parameters, and intelligent terminal
CN107402808B (en) Process management method, device, storage medium and electronic equipment
CN105760259A (en) Data backup method and device and electronic equipment
CN109271253A (en) A kind of resource allocation method, apparatus and system
CN111767012A (en) Screen projection method and device
CN111446753A (en) Charging control method, device, equipment and storage medium
CN111316216B (en) Screen locking mode switching method, terminal and computer readable storage medium
US20110175723A1 (en) Method for reminding of battery power level
WO2020103017A1 (en) Power-on process control method, power-on process control apparatus and terminal device
CN104679390B (en) A kind of method, apparatus and equipment of the skin that application is set in operating system platform
CN204156936U (en) A kind of acoustic control speech-sound intelligent mobile phone
CN105807890A (en) Information display method and device and electronic equipment
CN103870331A (en) Dynamic processor core distribution method and electronic equipment
CN107547742B (en) Wake-up lock release method and device for mobile terminal

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
GR01 Patent grant
GR01 Patent grant