CN112000395A - Background application clearing method and device, computer equipment and storage medium - Google Patents

Background application clearing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112000395A
CN112000395A CN202010936350.4A CN202010936350A CN112000395A CN 112000395 A CN112000395 A CN 112000395A CN 202010936350 A CN202010936350 A CN 202010936350A CN 112000395 A CN112000395 A CN 112000395A
Authority
CN
China
Prior art keywords
application
equipment
clearing
state
movement change
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
CN202010936350.4A
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.)
Shenzhen Saiante Technology Service Co Ltd
Original Assignee
Ping An International Smart City Technology 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202010936350.4A priority Critical patent/CN112000395A/en
Publication of CN112000395A publication Critical patent/CN112000395A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application belongs to the technical field of management, is applied to the field of intelligent communities, and relates to a background application clearing method which comprises the steps of obtaining the running state of current equipment, determining that the equipment is located on a main page when the running state is a main page state, and obtaining the mobile change rate of the equipment when the equipment is located on the main page; determining whether an application clearing instruction is triggered or not according to the movement change rate and a movement change threshold preset by the equipment; and when the application clearing instruction is triggered, clearing the running background application in the equipment. The application also provides a background application clearing device, computer equipment and a storage medium. In addition, the application also relates to a block chain technology, and the memory information in the device can be stored in the block chain. The application realizes the quick clearing of the background application.

Description

Background application clearing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of management technologies, and in particular, to a background application clearing method and apparatus, a computer device, and a storage medium.
Background
At present, when a plurality of applications are allowed at the background of the mobile phone at the same time, the computer consumption speed of the mobile phone is increased, and meanwhile, the memory of the mobile phone is occupied, so that the mobile phone becomes more and more cards. Interaction of simple and fast background wipe applications is also increasingly needed.
The existing interaction for clearing background applications is many, but the operation is cumbersome. When the background clearing function is called, the calling entrance is hidden, the operation difficulty coefficient is high, if the running background application is popped up after the homepage of the mobile phone is continuously pressed twice or the home key is pressed for 3 seconds, the background cannot be popped up normally due to insufficient continuous pressing speed or insufficient pressing time. Or, in the homepage of the mobile phone, the finger needs to slide upwards from the bottom of the mobile phone, and often, the background running application can be called out normally only by operating for many times because the sliding position is not close to the bottom enough or the sliding amplitude is not enough.
If all background applications need to be cleared, three fingers need to slide upwards simultaneously after the background running applications are popped up, so that all the applications are cleared, and the background running applications are more commonly cleared by clicking a delete button below after the background running applications are popped up. Therefore, the technical problem of low clearing efficiency of the background application is caused.
Disclosure of Invention
An embodiment of the application aims to provide a background application clearing method, a background application clearing device, a computer device and a storage medium, so as to solve the technical problem that background application clearing efficiency is low.
In order to solve the above technical problem, an embodiment of the present application provides a background application clearing method, which adopts the following technical solutions:
the method comprises the steps of obtaining the running state of current equipment, determining that the equipment is located on a main page when the running state is a home page state, and obtaining the movement change rate of the equipment when the equipment is located on the home page;
determining whether an application clearing instruction is triggered or not according to the movement change rate and a movement change threshold preset by the equipment;
and when the application clearing instruction is triggered, clearing the running background application in the equipment.
Further, the step of obtaining the movement change rate of the device specifically includes:
detecting displacement amplitudes of the equipment in three dimensions of x, y and z;
and calculating the movement change rate of the equipment according to the displacement amplitude.
Further, the step of acquiring the operating state of the current device specifically includes:
when the equipment is in a bright screen state, acquiring a page identifier of a current page of the equipment, and if the page identifier is a main page identifier, determining that the running state of the equipment is a main page state;
when the device is in the screen-off state, detecting whether the page identification of the device in the screen-off state is a main page identification, and if the page identification of the device in the screen-off state is the main page identification, determining that the running state of the device is a main page state.
Further, the step of determining whether to trigger the application clear instruction according to the movement change rate and a preset movement change threshold specifically includes:
acquiring the current battery electric quantity value of the equipment;
when the battery electric quantity value is larger than a preset threshold value, if the movement change rate is larger than or equal to a movement change threshold value of the equipment, triggering an application clearing instruction;
and when the battery electric quantity value is smaller than or equal to a preset threshold value, adjusting the movement change threshold value of the equipment to be a maximum threshold value, and if the movement change rate is larger than or equal to the maximum threshold value, triggering an application clearing instruction.
Further, after the step of obtaining the current battery power value of the device, the method further includes:
when the movement change rate is larger than or equal to a movement change threshold of the equipment, acquiring an electric quantity grade corresponding to the electric quantity value of the battery;
and determining the application level of the background application which is cleared correspondingly according to the electric quantity level, and triggering an application clearing instruction corresponding to the application level.
Further, the step of clearing the running background application in the device specifically includes:
detecting whether an application protection identifier exists in a background application running in the equipment;
when detecting that the background application with the application protection identification exists, locking the background application with the application protection identification, and clearing the unlocked background application in the running background application.
Further, after the step of obtaining the operating state of the current device, the method further includes:
when the equipment is in a screen-off state and a page in the screen-off state is a non-home page, acquiring an application which is displaying and running in the screen-off state;
and if the application is not displayed and operated again within the preset delay time, clearing the application and all running background applications when the preset delay time is reached.
In order to solve the foregoing technical problem, an embodiment of the present application further provides a computer device, including a memory and a processor, where the memory stores computer readable instructions, and the processor implements the steps of the foregoing background application clearing method when executing the computer readable instructions.
In order to solve the above technical problem, an embodiment of the present application further provides a computer-readable storage medium, where computer-readable instructions are stored on the computer-readable storage medium, and when executed by a processor, the computer-readable instructions implement the steps of the background application clearing method.
This application is through the running state who obtains current equipment when the running state is the homepage state, confirms equipment is located the main page equipment is located when the homepage, acquires the removal rate of change of equipment, wherein, removes the reflection that the rate of change is current equipment displacement amplitude, according to remove the rate of change and the predetermined removal change threshold value, can confirm whether trigger application clear command, triggering when using clear command, clear away the backstage application that is moving in the equipment has realized clearing away fast to backstage application's high efficiency, has improved the clearance efficiency of backstage application for the functioning speed of equipment is faster, has further improved the life of equipment battery.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram for one embodiment of a background application cleanup method according to the application;
FIG. 3 is a block diagram illustrating an embodiment of a background application removal mechanism according to the present application;
FIG. 4 is a schematic block diagram of one embodiment of a computer device according to the present application.
Reference numerals: background application clearing means 400, detection module 401, confirmation module 402 and clearing module 403.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that, the background application clearing method provided in the embodiment of the present application is generally executed by a server/terminal device, and accordingly, the background application clearing apparatus is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow diagram of one embodiment of a background application cleanup method in accordance with the present application is shown. The background application clearing method comprises the following steps:
step S201, obtaining the running state of the current equipment, determining that the equipment is positioned on a main page when the running state is a home page state, and obtaining the mobile change rate of the equipment when the equipment is positioned on the home page;
in this embodiment, it is determined whether the current device is located on the home page, and the movement change rate of the device is acquired when the device is located on the home page. The method comprises the steps of determining whether current equipment is located in a main page or not according to the running state of the current equipment, determining that the current equipment is located in the main page when the running state is in the main page state, and determining that the current equipment is not located in the main page when the running state is not in the main page state. The movement rate is the rate of change of the movement of the device along the x, y, z axes within a predetermined time range. Specifically, when the current device is detected to have displacement through a monitoring device (such as a linear displacement sensor), whether the current device is located on a main page is detected, and if the current device is located on the main page, the movement change rate of the current device is acquired based on the monitoring device; and if the current equipment is not positioned on the main page, the movement change rate of the current equipment is not acquired, so that the misjudgment of the shaking of the current equipment is avoided.
Step S202, determining whether to trigger an application clearing instruction according to the movement change rate and a movement change threshold preset by the equipment;
in this embodiment, when the movement change rate of the current device is obtained, whether an application clear instruction is triggered is determined according to the movement change rate. Specifically, when the movement change rate of the current device is obtained, a movement change threshold preset by the current device is obtained, and the movement change threshold is a preset critical value. When the movement change rate of the current equipment is greater than or equal to the movement change threshold, triggering an application clearing instruction; when the movement change rate of the current device is less than the movement change threshold, the application clear instruction is not triggered.
Step S203, when the application clear instruction is triggered, clear the background application running in the device.
In this embodiment, when the application clear instruction is triggered, the background application running in the current device is acquired, and the background application running in the current device is cleared according to the application clear instruction. And clearing the cache of the running background application.
Further, after the background application running in the device is cleared, the memory information of the current device may also be obtained, where the memory information is the memory information of each application in the device. And determining the cleared memory information and the existing memory information according to the memory information, and pushing the cleared memory information and the existing memory information to a display interface.
It is emphasized that, in order to further ensure the privacy and security of the memory information, the memory information may also be stored in a node of a block chain.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In this embodiment, by obtaining the running state of the current device, when the running state is the home page state, it is determined that the device is located on the home page, when the device is located on the home page, the mobile change rate of the device is obtained, then, according to the mobile change rate and the mobile change threshold preset by the device, it is determined whether to trigger an application clear instruction, and when the application clear instruction is triggered, the background application running in the device is cleared, so that efficient and fast clearing of the background application is realized, the clearing efficiency of the background application is improved, the running speed of the device is faster, and the service life of a device battery is further prolonged. This application still can be applied to in the wisdom community field to promote the construction in wisdom city.
In some embodiments of the present application, the step of obtaining the movement change rate of the device specifically includes:
detecting displacement amplitudes of the equipment in three dimensions of x, y and z;
and calculating the movement change rate of the equipment according to the displacement amplitude.
In this embodiment, the displacement amplitude of the current device in three dimensions of x, y, and z may be detected by the monitoring device, specifically, when it is detected that the current device has displacement and is located on the homepage, the displacement amplitude of the current device is detected, where the displacement amplitude indicates that the current device uses the position of the moment at which the displacement is detected as the origin, and displacement distances in x, y, and z within a time range are respectively preset. The preset time is preset displacement detection time, and when displacement of a certain dimension does not exist, the displacement amplitude of the dimension is 0. And when the corresponding displacement amplitude of the current equipment in the preset time range is obtained, adding the displacement amplitudes of the three dimensions, and dividing the sum by the preset time to calculate the movement change rate of the current equipment.
According to the method, the amplitude detection is respectively carried out in the three dimensions of x, y and z, so that the accurate calculation of the movement change rate of the current equipment is realized, the accuracy of whether the equipment is subjected to the movement calculation is improved, and the misjudgment of the equipment shaking is avoided.
In some embodiments of the present application, the obtaining of the current operating state of the device includes:
when the equipment is in a bright screen state, acquiring a page identifier of a current page of the equipment, and if the page identifier is a main page identifier, determining that the running state of the equipment is a main page state;
when the device is in the screen-off state, detecting whether the page identification of the device in the screen-off state is a main page identification, and if the page identification of the device in the screen-off state is the main page identification, determining that the running state of the device is a main page state.
In this embodiment, the screen-on state indicates that the current device is in the screen-on operation, and the screen-off state indicates that the current device is in the screen-off operation. When the current equipment is in a bright screen state, acquiring a page identifier of a current page of the equipment, and if the page identifier is a main page identifier, determining that the running state of the current equipment is a main page state; and if the page identifier is not the main page identifier, determining that the running state of the current equipment is not the page state. When the running state is a screen turning-off state, detecting whether the page identification of the page of the current equipment when the screen turning-off state is a main page identification, if the page identification of the page of the current equipment when the screen turning-off state is the main page identification, determining that the running state of the current equipment is a main page state, and defaulting that the current equipment is located in the main page.
In the embodiment, whether the device is located on the main page or not is determined by judging the screen-off state and the screen-on state of the device, so that the device can clear the application in the screen-off state, the device clearing efficiency is improved, and the energy consumption of the device during clearing the application is reduced.
In some embodiments of the present application, the determining whether to trigger the application clear instruction according to the movement change rate and a movement change threshold preset by the device includes:
acquiring the current battery electric quantity value of the equipment;
when the battery electric quantity value is larger than a preset threshold value, if the movement change rate is larger than or equal to a movement change threshold value of the equipment, triggering an application clearing instruction;
and when the battery electric quantity value is smaller than or equal to a preset threshold value, adjusting the movement change threshold value of the equipment to be a maximum threshold value, and if the movement change rate is larger than or equal to the maximum threshold value, triggering an application clearing instruction.
In this embodiment, the preset threshold is a preset battery power threshold, and when the battery power value is less than or equal to the preset threshold, it indicates that the current device is in a state of low battery performance. When determining whether to trigger an application clearing instruction according to the movement change rate, acquiring a battery electric quantity value of the current equipment, adjusting the movement change threshold value of the equipment to be a maximum threshold value when the battery electric quantity value of the equipment is smaller than or equal to a preset threshold value, and triggering the application clearing instruction when the movement change rate of the current equipment is larger than or equal to the maximum threshold value; when the rate of change of the movement of the current device is less than the maximum threshold, then no application clear instruction is triggered. Therefore, the condition for triggering the application clearing instruction is improved by adjusting the movement change threshold value under the condition of low battery performance of the equipment, so that the battery consumption of the equipment is reduced, and the service life of the equipment is prolonged. When the battery electric quantity value of the equipment is larger than the preset threshold value, the movement change threshold value of the current equipment does not need to be adjusted, and if the movement change rate of the current equipment is detected to be larger than or equal to the movement change threshold value, an application clearing instruction is triggered.
In this embodiment, the mobile change threshold is dynamically adjusted according to the battery power, so as to further adjust the condition triggered by the application clear instruction, so that the frequency of clearing the background application is reduced by improving the condition for triggering the application clear instruction when the power of the device is low, and the power consumption of the device is reduced.
In some embodiments of the present application, after the step of obtaining the current battery power value of the device, the method further includes:
when the movement change rate is larger than or equal to a movement change threshold of the equipment, acquiring an electric quantity grade corresponding to the electric quantity value of the battery;
and determining the application level of the background application which is cleared correspondingly according to the electric quantity level, and triggering an application clearing instruction corresponding to the application level.
In this embodiment, when the battery power value of the current device is obtained and the device movement change rate is greater than or equal to the movement change threshold, the application level of the corresponding cleared background application may also be determined according to the power level of the current battery power value. Specifically, the battery electric quantity value may be divided into a plurality of different electric quantity levels, such as a high electric quantity level, a medium electric quantity level, and a low electric quantity level, according to the electric quantity value, and the battery electric quantity values of the different electric quantity levels respectively correspond to the background applications of the different preset application levels. The application levels of the background application are divided according to the electric quantity and the power consumed by the background application when the background application operates in the background, and the background application can be divided into application levels with the corresponding number of electric quantity levels, such as a high-power consumption level, a medium-power consumption level and a low-power consumption level.
The lower the electric quantity level of the battery electric quantity value is (namely, the lower the electric quantity is), the larger the application level of the corresponding cleared background application is, if the battery electric quantity value of the high electric quantity level corresponds to the background application of the low power consumption level, the battery electric quantity value of the medium electric quantity level corresponds to the background application of the medium power consumption level, and the battery electric quantity value of the low electric quantity level corresponds to the background application of the high power consumption level. According to the electric quantity grade of the battery electric quantity value of the current equipment, when the movement change rate is greater than or equal to the movement change threshold value, determining the application grade of the background application cleared correspondingly to the electric quantity grade, and triggering an application clearing instruction corresponding to the application grade; and when the running background application is cleared according to the application clearing instruction, clearing the application corresponding to the application level in the running background application.
In addition, when the movement change rate is greater than or equal to the movement change threshold, the number of the cleared background applications can be determined according to the power level of the battery power value. For example, when the power level is a high power level, all running background applications are cleared; when the electric quantity grade is the medium electric quantity grade, background application of the high-power consumption grade and the medium-power consumption grade is eliminated; and when the electric quantity grade is a low electric quantity grade, only removing the background application with high power consumption.
The embodiment further realizes the judgment of clearing the background application according to the electric quantity of the battery, so that under the condition of different electric quantity grades, different background applications are cleared, the consumption of the battery of the equipment is reduced, and the clearing efficiency of the equipment is improved.
In some embodiments of the present application, the clearing the background application running in the device includes:
detecting whether an application protection identifier exists in a background application running in the equipment;
when detecting that the background application with the application protection identification exists, locking the background application with the application protection identification, and clearing the unlocked background application in the running background application.
In this embodiment, when the background application running in the device is cleared, whether the application protection identifier exists in the background application running in the device is detected. And locking the background application with the application protection identifier when detecting that the background application with the application protection identifier exists in the running background application, wherein the locking is to lock the clearing authority of the background application under the condition of not changing the original running state of the background application, and the clearing authority is opened only when receiving an unlocking instruction of the background application. And when the background application with the application protection identification is locked, clearing the unlocked background application in the running background application.
In the embodiment, the background application corresponding to the application protection identifier is locked, so that the background application with application protection is prevented from being mistakenly cleared, and application protection is realized.
In some embodiments of the present application, after the step of obtaining the operating state of the current device, the method further includes:
when the equipment is in a screen-off state and a page in the screen-off state is a non-home page, acquiring an application which is displaying and running in the screen-off state;
and if the application is not displayed and operated again within the preset delay time, clearing the application and all running background applications when the preset delay time is reached.
In this embodiment, when the current device is in the screen turning state, and the page turning on the screen is a non-home page, that is, the page identifier of the page turning on the screen is a non-home page identifier, the application running on display (that is, running in a non-background) while turning on the screen is acquired, and if the application running on display is not running on display again within the preset delay time, the application and all running background applications are removed when the preset delay time is reached.
According to the method and the device, the delayed clearing of the application is realized when the screen is turned off and the page is not a homepage, the clearing efficiency of the device application is improved, and the consumption of a device battery caused by running of the application for a long time without being started is avoided.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware associated with computer readable instructions, which can be stored in a computer readable storage medium, and when executed, can include processes of the embodiments of the methods described above. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 3, as an implementation of the method shown in fig. 2, the present application provides an embodiment of a background application clearing apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 3, the background application clearing apparatus 400 according to this embodiment includes: a detection module 401, a confirmation module 402, and a purge module 403. Wherein:
the detection module 401 is configured to acquire an operating state of a current device, determine that the device is located on a main page when the operating state is a home page state, and acquire a movement change rate of the device when the device is located on the home page;
wherein the detection module 401 includes:
the first detection unit is used for detecting the displacement amplitude of the equipment in three dimensions of x, y and z;
and the calculating unit is used for calculating the movement change rate of the equipment according to the displacement amplitude.
The first confirming unit is used for acquiring a page identifier of a current page of the equipment when the equipment is in a bright screen state, and determining that the running state of the equipment is in a home page state if the page identifier is in the home page identifier;
and the second confirming unit is used for detecting whether the page identifier of the equipment in the screen switching state is a main page identifier or not when the equipment is in the screen switching state, and if the page identifier of the equipment in the screen switching state is the main page identifier, determining that the running state of the equipment is a main page state.
In this embodiment, it is determined whether the current device is located on the home page, and the movement change rate of the device is acquired when the device is located on the home page. The method comprises the steps of determining whether current equipment is located in a main page or not according to the running state of the current equipment, determining that the current equipment is located in the main page when the running state is in the main page state, and determining that the current equipment is not located in the main page when the running state is not in the main page state. The movement rate is the rate of change of the movement of the device along the x, y, z axes within a predetermined time range. Specifically, when the current device is detected to have displacement through a monitoring device (such as a linear displacement sensor), whether the current device is located on a main page is detected, and if the current device is located on the main page, the movement change rate of the current device is acquired based on the monitoring device; and if the current equipment is not positioned on the main page, the movement change rate of the current equipment is not acquired, so that the misjudgment of the shaking of the current equipment is avoided.
A determining module 402, configured to determine whether to trigger an application clear instruction according to the movement change rate and a preset movement change threshold;
wherein the confirmation module 402 comprises:
the first acquisition unit is used for acquiring the current battery electric quantity value of the equipment;
the first trigger unit is used for triggering an application clearing instruction if the movement change rate is greater than or equal to a movement change threshold of the equipment when the battery electric quantity value is greater than a preset threshold;
and the second trigger unit is used for adjusting the movement change threshold of the equipment to be a maximum threshold when the battery electric quantity value is smaller than or equal to a preset threshold, and triggering an application clearing instruction if the movement change rate is larger than or equal to the maximum threshold.
The second obtaining unit is used for obtaining the electric quantity grade corresponding to the electric quantity value of the battery when the movement change rate is larger than or equal to a movement change threshold value of the equipment;
and the third triggering module is used for determining the application level of the background application which is correspondingly cleared according to the electric quantity level and triggering an application clearing instruction corresponding to the application level.
In this embodiment, when the movement change rate of the current device is obtained, whether an application clear instruction is triggered is determined according to the movement change rate. Specifically, when the movement change rate of the current device is obtained, a movement change threshold preset by the current device is obtained, and the movement change threshold is a preset critical value. When the movement change rate of the current equipment is greater than or equal to the movement change threshold, triggering an application clearing instruction; when the movement change rate of the current device is less than the movement change threshold, the application clear instruction is not triggered.
A clearing module 403, configured to clear the background application running in the device when the application clearing instruction is triggered.
Wherein the clearing module 403 comprises:
a second detection unit, configured to detect whether an application protection identifier exists in a background application running in the device;
and the clearing unit is used for locking the background application with the application protection identifier and clearing the unlocked background application in the running background application when detecting that the background application with the application protection identifier exists.
In this embodiment, when the application clear instruction is triggered, the background application running in the current device is acquired, and the background application running in the current device is cleared according to the application clear instruction. And clearing the cache of the running background application.
Further, after the background application running in the device is cleared, the memory information of the current device may also be obtained, where the memory information is the memory information of each application in the device. And determining the cleared memory information and the existing memory information according to the memory information, and pushing the cleared memory information and the existing memory information to a display interface.
It is emphasized that, in order to further ensure the privacy and security of the memory information, the memory information may also be stored in a node of a block chain.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The background application clearing apparatus in this embodiment further includes:
the acquisition module is used for acquiring an application which is displaying and running when the device is in a screen-off state and a page during screen off is a non-homepage surface;
and the delay module is used for clearing the application and all running background applications when the preset delay time is reached if the application is not displayed and run again within the preset delay time.
In this embodiment, when the current device is in the screen turning state, and the page turning on the screen is a non-home page, that is, the page identifier of the page turning on the screen is a non-home page identifier, the application running on display (that is, running in a non-background) while turning on the screen is acquired, and if the application running on display is not running on display again within the preset delay time, the application and all running background applications are removed when the preset delay time is reached.
The background application clearing device provided by the application realizes efficient and rapid clearing of background application, improves clearing efficiency of the background application, enables running speed of equipment to be faster, and further prolongs service life of equipment batteries. This application still can be applied to in the wisdom community field to promote the construction in wisdom city.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 4, fig. 4 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 6 comprises a memory 61, a processor 62, a network interface 63 communicatively connected to each other via a system bus. It is noted that only a computer device 6 having components 61-63 is shown, but it is understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 61 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the computer device 6. Of course, the memory 61 may also comprise both an internal storage unit of the computer device 6 and an external storage device thereof. In this embodiment, the memory 61 is generally used for storing an operating system installed on the computer device 6 and various application software, such as computer readable instructions of a background application removal method. Further, the memory 61 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 62 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 62 is typically used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to execute computer readable instructions stored in the memory 61 or process data, for example, execute computer readable instructions of the background application clearing method.
The network interface 63 may comprise a wireless network interface or a wired network interface, and the network interface 63 is typically used for establishing a communication connection between the computer device 6 and other electronic devices.
The application provides computer equipment has realized cleaing away fast high-efficient of backstage application, has improved the efficiency of cleaing away of backstage application for the functioning speed of equipment is faster, has further improved the life of equipment battery. This application still can be applied to in the wisdom community field to promote the construction in wisdom city.
The present application further provides another embodiment, which is to provide a computer-readable storage medium storing computer-readable instructions executable by at least one processor to cause the at least one processor to perform the steps of the background application cleanup method as described above.
The computer-readable storage medium provided by the application realizes efficient and rapid clearing of the background application, improves clearing efficiency of the background application, enables the running speed of equipment to be faster, and further prolongs the service life of the equipment battery. This application still can be applied to in the wisdom community field to promote the construction in wisdom city.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.

Claims (10)

1. A background application cleanup method, comprising the steps of:
the method comprises the steps of obtaining the running state of current equipment, determining that the equipment is located on a main page when the running state is a home page state, and obtaining the movement change rate of the equipment when the equipment is located on the home page;
determining whether an application clearing instruction is triggered or not according to the movement change rate and a movement change threshold preset by the equipment;
and when the application clearing instruction is triggered, clearing the running background application in the equipment.
2. The background application removal method according to claim 1, wherein the step of obtaining the movement change rate of the device specifically includes:
detecting displacement amplitudes of the equipment in three dimensions of x, y and z;
and calculating the movement change rate of the equipment according to the displacement amplitude.
3. The background application removal method according to claim 1, wherein the step of obtaining the running state of the current device specifically includes:
when the equipment is in a bright screen state, acquiring a page identifier of a current page of the equipment, and if the page identifier is a main page identifier, determining that the running state of the equipment is a main page state;
when the device is in the screen-off state, detecting whether the page identification of the device in the screen-off state is a main page identification, and if the page identification of the device in the screen-off state is the main page identification, determining that the running state of the device is a main page state.
4. The background application removal method according to claim 1, wherein the step of determining whether to trigger an application removal instruction according to the movement change rate and a preset movement change threshold specifically comprises:
acquiring the current battery electric quantity value of the equipment;
when the battery electric quantity value is larger than a preset threshold value, if the movement change rate is larger than or equal to a movement change threshold value of the equipment, triggering an application clearing instruction;
and when the battery electric quantity value is smaller than or equal to a preset threshold value, adjusting the movement change threshold value of the equipment to be a maximum threshold value, and if the movement change rate is larger than or equal to the maximum threshold value, triggering an application clearing instruction.
5. A background application removal method as claimed in claim 4, further comprising, after the step of obtaining the current battery charge value of the device:
when the movement change rate is larger than or equal to a movement change threshold of the equipment, acquiring an electric quantity grade corresponding to the electric quantity value of the battery;
and determining the application level of the background application which is cleared correspondingly according to the electric quantity level, and triggering an application clearing instruction corresponding to the application level.
6. A background application removal method as claimed in claim 1, wherein the step of removing the running background application in the device specifically comprises:
detecting whether an application protection identifier exists in a background application running in the equipment;
when detecting that the background application with the application protection identification exists, locking the background application with the application protection identification, and clearing the unlocked background application in the running background application.
7. A background application clearing method according to claim 1, further comprising, after the step of obtaining the running state of the current device:
when the equipment is in a screen-off state and a page in the screen-off state is a non-home page, acquiring an application which is displaying and running in the screen-off state;
and if the application is not displayed and operated again within the preset delay time, clearing the application and all running background applications when the preset delay time is reached.
8. A background application cleanup apparatus, comprising:
the detection module is used for acquiring the running state of the current equipment, determining that the equipment is positioned on a main page when the running state is a homepage state, and acquiring the movement change rate of the equipment when the equipment is positioned on the homepage;
the confirming module is used for determining whether to trigger an application clearing instruction according to the movement change rate and a preset movement change threshold;
and the clearing module is used for clearing the background application running in the equipment when the application clearing instruction is triggered.
9. A computer device comprising a memory having computer readable instructions stored therein and a processor which when executed implements the steps of the background application cleanup method of any one of claims 1-7.
10. A computer readable storage medium having computer readable instructions stored thereon which, when executed by a processor, implement the steps of the background application cleanup method of any one of claims 1-7.
CN202010936350.4A 2020-09-08 2020-09-08 Background application clearing method and device, computer equipment and storage medium Pending CN112000395A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010936350.4A CN112000395A (en) 2020-09-08 2020-09-08 Background application clearing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010936350.4A CN112000395A (en) 2020-09-08 2020-09-08 Background application clearing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112000395A true CN112000395A (en) 2020-11-27

Family

ID=73470156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010936350.4A Pending CN112000395A (en) 2020-09-08 2020-09-08 Background application clearing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112000395A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768615A (en) * 2012-06-26 2012-11-07 北京奇虎科技有限公司 Method and device for clearing up operation system resources of electronic equipment
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN105700663A (en) * 2016-01-13 2016-06-22 广东小天才科技有限公司 Background program cleaning method and system for mobile terminal
CN106250191A (en) * 2016-08-04 2016-12-21 北京奇虎科技有限公司 Internal memory method for cleaning, device and the mobile terminal of mobile terminal
WO2019061184A1 (en) * 2017-09-28 2019-04-04 深圳传音通讯有限公司 Process clearing method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102768615A (en) * 2012-06-26 2012-11-07 北京奇虎科技有限公司 Method and device for clearing up operation system resources of electronic equipment
CN104298335A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Application program process cleaning method and device of mobile terminal and mobile terminal
CN105700663A (en) * 2016-01-13 2016-06-22 广东小天才科技有限公司 Background program cleaning method and system for mobile terminal
CN106250191A (en) * 2016-08-04 2016-12-21 北京奇虎科技有限公司 Internal memory method for cleaning, device and the mobile terminal of mobile terminal
WO2019061184A1 (en) * 2017-09-28 2019-04-04 深圳传音通讯有限公司 Process clearing method and related device

Similar Documents

Publication Publication Date Title
US20180248879A1 (en) Method and apparatus for setting access privilege, server and storage medium
CN101739564A (en) System and method for fingerprint identification
CN113326991B (en) Automatic authorization method, device, computer equipment and storage medium
CN114070583B (en) Information access control method, device, computer equipment and medium
CN110928950A (en) Block chain transaction information management method and device, computer equipment and storage medium
CN112468409A (en) Access control method, device, computer equipment and storage medium
CN104901805A (en) Identity authentication method and device and system
CN104636240A (en) Method for acquiring information report and terminal
CN107368255A (en) Unlocking method, mobile terminal and computer-readable recording medium
CN112990583B (en) Method and equipment for determining model entering characteristics of data prediction model
CN114124460A (en) Industrial control system intrusion detection method and device, computer equipment and storage medium
CN113242301A (en) Method and device for selecting real server, computer equipment and storage medium
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN110365642B (en) Method and device for monitoring information operation, computer equipment and storage medium
CN111857997A (en) Application program body-separating identification display method, device, equipment and medium
CN112396048A (en) Picture information extraction method and device, computer equipment and storage medium
CN112000395A (en) Background application clearing method and device, computer equipment and storage medium
CN107133510A (en) A kind of terminal pattern switching method and device
CN116561737A (en) Password validity detection method based on user behavior base line and related equipment thereof
CN114298088A (en) Load identification method and device, computer equipment and storage medium
CN112002352B (en) Random music playing method and device, computer equipment and storage medium
CN113283759B (en) Account risk portrait updating method, device, equipment and storage medium
CN113886332B (en) Large file difference comparison method and device, computer equipment and storage medium
CN114912003A (en) Document searching method and device, computer equipment and storage medium
WO2023066258A1 (en) Data processing method and apparatus for private data, computer device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20210222

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen saiante Technology Service Co.,Ltd.

Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before: Ping An International Smart City Technology Co.,Ltd.

TA01 Transfer of patent application right
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

Application publication date: 20201127

RJ01 Rejection of invention patent application after publication