CN106572250B - Method and device for cleaning background application program of mobile terminal - Google Patents
Method and device for cleaning background application program of mobile terminal Download PDFInfo
- Publication number
- CN106572250B CN106572250B CN201610965905.1A CN201610965905A CN106572250B CN 106572250 B CN106572250 B CN 106572250B CN 201610965905 A CN201610965905 A CN 201610965905A CN 106572250 B CN106572250 B CN 106572250B
- Authority
- CN
- China
- Prior art keywords
- application program
- background application
- background
- mobile terminal
- cleaning
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
- H04M1/72472—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons wherein the items are sorted according to specific criteria, e.g. frequency of use
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a method and a device for cleaning a background application program of a mobile terminal, and belongs to the technical field of application program management. The method comprises the following steps: sequencing at least one background application program of the mobile terminal according to a preset rule; monitoring system parameters of the mobile terminal occupied by at least one background application program; when the system parameter is larger than a preset first threshold value, generating an alarm signal; and cleaning the background application programs according to the alarm signals and the sequencing of the at least one background application program. The method and the device for cleaning the background application program of the mobile terminal can automatically clean the application program occupying the system space, thereby optimizing the cleaning of the application program of the mobile terminal and improving the smoothness of the operation of the mobile phone.
Description
Technical Field
The invention relates to the field of application program management, in particular to a method and a device for cleaning a background application program of a mobile terminal.
Background
With the continuous intelligent development of mobile terminals such as mobile phones and the like, users increasingly rely on smart phones, and usually open many applications in the background or use a certain application frequently during actual use. However, if background applications are not cleaned for a long time, the available memory of the mobile phone is too small, and a Central Processing Unit (CPU) occupies too high, which may cause the mobile phone to have slow operation speed, become stuck, and consume too much power.
The current method is to monitor the mobile phone CPU and memory, etc., and if the threshold value is exceeded, the user is prompted, and the application program in the background is cleaned manually by the user. However, this method is prone to false alarm; alternatively, a short-term peak of operation exceeding the threshold may also prompt the user, causing unnecessary trouble to the user. In addition, the conventional method is easy to mistakenly clean useful tasks during cleaning, and the manual operation of a user is complicated.
Therefore, it is necessary to provide a method and an apparatus for cleaning background applications of a mobile terminal, so as to avoid the above situation.
Disclosure of Invention
The invention mainly aims to provide a method and a device for cleaning a background application program of a mobile terminal, which can avoid the situation of misinformation or mistaken cleaning when monitoring and cleaning the background application program, save the trouble of manual cleaning of a user and improve the user experience.
In order to achieve the above object, the present invention provides a method for cleaning a background application of a mobile terminal, including the steps of: sequencing at least one background application program of the mobile terminal according to a preset rule; monitoring system parameters of the mobile terminal occupied by the at least one background application program; when the system parameter is larger than a preset first threshold value, generating an alarm signal; and cleaning the background application programs according to the alarm signals and the sequencing of the at least one background application program.
Optionally, the sorting at least one background application of the mobile terminal according to the preset rule includes: acquiring the use frequency of each background application program and a switching time point for switching from a foreground to a background; calculating a ranking value according to the use frequency and the switching time point; and generating a sorted list according to the sorting value.
Optionally, the at least one background application includes a first background application and at least one second background application, and after the generating the ordered list according to the ordering value, the method further includes: receiving a removal cleaning instruction for the first background application program; removing the first background application from the ordered list.
Optionally, before the generating an alarm signal when the system parameter is greater than a preset first threshold, the method further includes: setting a first threshold and a second threshold of the system parameter, wherein the first threshold is larger than the second threshold; when the system parameter is in an interval which is smaller than the first threshold and larger than the second threshold, judging whether the duration of the system parameter in the interval is larger than a preset time threshold, and if so, generating an alarm signal; if not, no alarm signal is generated.
Optionally, the cleaning the background application includes: acquiring system resources occupied by the at least one background application program; calculating the difference value between the occupied system resource and the second threshold value to serve as a background application program to be cleaned; and cleaning the background application program to be cleaned.
In addition, in order to achieve the above object, the present invention further provides a device for cleaning a background application of a mobile terminal, where the device includes: the sequencing module is used for sequencing at least one background application program of the mobile terminal according to a preset rule; the monitoring module is used for monitoring the system parameters of the mobile terminal occupied by the at least one background application program; the alarm module is used for generating an alarm signal when the system parameter is greater than a preset first threshold value; and the cleaning module is used for cleaning the background application programs according to the alarm signal and the sequencing of the at least one background application program.
Optionally, the sorting module includes: the first acquisition unit is used for acquiring the use frequency of each background application program and the switching time point for switching from the foreground to the background; the first calculation unit is used for calculating a ranking value according to the use frequency and the switching time point; and the sorting unit is used for generating a sorting list according to the sorting value.
Optionally, the sorting module further comprises: the receiving unit is used for receiving a removal and cleaning instruction of the first background application program; a removal unit to remove the first background application from the ordered list.
Optionally, the apparatus further comprises: the setting module is used for setting a first threshold and a second threshold of the system parameter, wherein the first threshold is larger than the second threshold; the judging module is used for judging whether the duration time of the system parameter in the interval is greater than a preset time threshold value or not when the system parameter is in the interval which is smaller than the first threshold value and greater than the second threshold value, and triggering an alarm module to generate an alarm signal if the duration time of the system parameter in the interval is greater than the preset time threshold value; if not, no alarm signal is generated.
Optionally, the cleaning module includes: the second acquisition unit is used for acquiring the system resources occupied by the at least one background application program; the second calculating unit is used for calculating the difference value between the occupied system resource and the second threshold value to serve as a background application program to be cleaned; and the cleaning unit is used for cleaning the background application program to be cleaned.
According to the method and the device for cleaning the background application programs of the mobile terminal, the at least one background application program of the mobile terminal is sequenced according to the preset rule, the system parameters of the mobile terminal occupied by the at least one background application program are monitored, when the system parameters are larger than the preset first threshold value, the warning signal is generated, the background application program is cleaned according to the sequencing of the warning signal on the at least one background application program, and the application program occupying the system space can be automatically cleaned, so that the application program cleaning of the mobile terminal is optimized, and the mobile phone operation smoothness is improved.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an alternative mobile terminal for implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a schematic flowchart of a method for cleaning a background application of a mobile terminal according to a first embodiment of the present invention;
fig. 4 is a schematic sub-flow chart of a method for cleaning a background application of a mobile terminal according to a first embodiment of the present invention;
FIG. 5 is a schematic interface diagram of an ordered list in accordance with various embodiments of the invention;
fig. 6 is a flowchart illustrating a method for cleaning a background application of a mobile terminal according to a second embodiment of the present invention;
fig. 7 is a flowchart illustrating a method for cleaning a background application of a mobile terminal according to a third embodiment of the present invention;
FIG. 8 is a schematic diagram of the relationship between time and system occupancy in various embodiments of the present invention;
fig. 9 is a flowchart illustrating a method for cleaning a background application of a mobile terminal according to a fourth embodiment of the present invention;
fig. 10 is a schematic block diagram of an apparatus for cleaning a background application of a mobile terminal according to a fifth embodiment of the present invention;
FIG. 11 is a block diagram of the sort module of FIG. 10;
fig. 12 is a schematic block diagram of an apparatus for cleaning a background application of a mobile terminal according to a sixth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the mobile terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc.
Fig. 1 illustrates the mobile terminal 100 having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. The elements of the mobile terminal 100 will be described in detail below.
The wireless communication unit 110 may generally include one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit 110 may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive digital broadcasting by using a digital broadcasting system such as a data broadcasting system of multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO @), terrestrial digital broadcasting integrated service (ISDB-T), and the like. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetooth (TM), Radio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbee (TM), and the like.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module 115 is a GPS (global positioning system). According to the current technology, the GPS calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal 100. The microphone 122 may receive sounds (audio data) via the microphone 122 in a phone call mode, a recording mode, a voice recognition mode, or the like, and is capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data to control various operations of the mobile terminal 100 according to a command input by a user. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 141.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal 100. Various command signals or power input from the cradle may be used as a signal for identifying whether the mobile terminal 100 is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, mobile terminal 100 may include two or more display units (or other display devices), for example, mobile terminal 100 may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (communicating communication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of 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, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, the mobile terminal 100 has been described in terms of its functionality. In addition, the mobile terminal 100 in the embodiment of the present invention may be a mobile terminal such as a folder type, a bar type, a swing type, a slide type, and other various types, and is not limited herein.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC 280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC 280 is also configured to interface with a BSC 275, which may be coupled to the base station 270 via a backhaul. The backhaul line may be constructed according to any of several known interfaces, which may include, for example, european/american standard high capacity digital lines (E1/T1), Asynchronous Transfer Mode (ATM), network protocol (IP), point-to-point protocol (PPP), frame relay, high-rate digital subscriber line (HDSL), Asymmetric Digital Subscriber Line (ADSL), or various types of digital subscriber lines (xDSL). It will be understood that a system as shown in fig. 2 may include multiple BSCs 275.
Each BS 270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz, 5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC 275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each partition of a particular BS 270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The location information module 115 (e.g., GPS) as shown in fig. 1 is generally configured to cooperate with the satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS 270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station is processed within a particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN 290 interfaces with the MSC 280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS 270 to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
Example one
As shown in fig. 3, a first embodiment of the present invention provides a method for cleaning a background application of a mobile terminal, including:
and 310, sequencing at least one background application program of the mobile terminal according to a preset rule.
Specifically, the service conditions of each background application program of the mobile terminal are monitored in the background, and corresponding data are recorded. In order to be able to preferentially clean up the applications with long standby time in the background and low use frequency in the subsequent steps, the currently running background applications need to be sorted. Referring to fig. 4, step 310 further includes:
Specifically, the frequency of use of each background application is obtained:
the cumulative statistical time (in "days") of the application, the cumulative number of opens, is recorded. The term "cumulative number of openings" means: the number of times the application switches from the off state to the foreground use state within the "cumulative count time". The frequency of use of the application is: cumulative open times ÷ cumulative statistical time.
Further, in addition to recording the cumulative statistical time and the cumulative number of opens, it is also necessary to record the latest open time of the application. "last opening time" means: and the application program is switched from the closing state to the foreground using state for the last time. Alternatively, the unit of the "last opening time" is: date and time in the format: yyyy-mm-dd hour (year-month-day: hour: minute) and hour (hour: minute).
Further, if the application is opened again after the "last opening time" (defined as the current opening time), the cumulative number of openings and the cumulative number of statistical days need to be updated and the frequency of use recalculated.
Further, the "current opening time" is updated to the "last opening time" before or after recalculating the usage frequency.
Illustratively, if the cumulative number of openings is: count1, the cumulative statistical time is: days1, the last open time was: t 1. If the current opening time of the record is t2, the record of the application program is updated as follows: the cumulative opening times count2 is count1+1, and the cumulative statistical time days2 is days1+ (t2-t1), and the application program has the use frequency: count2 ÷ days2, and update t2 to the last recorded open time.
Further, in this example, if the value of t2-t1 is greater than 1 (day), then days2 ═ days1+ 1; if the value of t2-t1 is less than 1 (day), days2 is not days 1.
Further, in this example, if after t2, the current open time is recorded again as t3, then the record for the application is updated as: the cumulative opening times count3 is count2+1, and the cumulative statistical time days3 is days2+ (t3-t2), the frequency of use of the application is: count3 ÷ days3, and update t3 to the last recorded open time.
And acquiring the switching time point of each background application program from the foreground to the background and the current time point of the system.
And 420, calculating a ranking value according to the use frequency and the switching time point.
Specifically, if the switching time point of the application from the foreground to the background is T1 (unit: min), and the current time point of the system is T2, the ranking value is (T2-T1) ÷ opening frequency.
Illustratively, if the application switches from foreground to background at 13:00, the time when the ranking value is counted is 13:10, then the ranking value is 10 ÷ opening frequency.
And 430, generating a sorted list according to the sorted values.
Specifically, the sorting is performed according to the sorting values from high to low, and a sorted list is generated. That is, the higher the ranking value of an application in the ranking list, the earlier the order thereof, and as an application to be cleaned up in the following priority.
Furthermore, in the generated ranking list, the order of each application program can be adjusted according to the instruction of the user for dragging the application program, so that the user can adjust the ranking value of the application program according to personal preference and the importance degree of the application program. Referring to fig. 5, in an interface diagram of the ordered list, parameters such as the use frequency and the switching time of the application a and the application B are displayed, and in an actual operation, a user may adjust the sequence of the application program by dragging the display frame of the application a or the application B up and down, so as to form a new ordered list.
If the sequence of the application programs in the ordered list is adjusted, in order to make the adjusted application program ranking value greater than the next application program ranking value, a difference value is generated, the difference value is recorded, and the adjusted application program ranking value is updated as: (T2-T1) ÷ opening frequency + differential value.
Further, the process of generating the difference value is:
the first condition is as follows:
assuming that the position of an application 4 in the sorted list is the 4 th position, the corresponding sorting value is sort4, and the sorting values of the applications 1 and 2 in the 1 st and 2 nd positions in the sorted list are sort1 and sort2, respectively. If the application 4 of sort4 is adjusted to the 2 nd bit, the difference value is sort 2-sort 4+ (sort 1-sort 2) ÷ 2.
Case two:
based on the condition of case one, if the application 4 of sort4 is adjusted to bit 1, the difference value is sort1-sort4+ additional value. The additional value is set to ensure that the ranking value of the application 4 after the position adjustment can be larger than the ranking values of other applications. In the present embodiment, the additional value may be set to 0.01. In other embodiments, the additional value may be set to other values, and the present invention is not particularly limited herein.
And step 320, monitoring system parameters of the mobile terminal occupied by at least one background application program.
Specifically, the system parameters may include: the application program occupies data of a Central Processing Unit (CPU), data of a memory, and the like.
Further, step 320 may be triggered to monitor system parameters of the mobile terminal occupied by the at least one background application according to an instruction of the user; monitoring 320 system parameters of the mobile terminal may also be triggered by detecting a sudden change in the battery level of the mobile terminal.
Specifically, a first threshold is preset, and if the system parameter is greater than the preset first threshold, step 340 is performed, and if the system parameter is less than the preset first threshold, step 360 is performed.
Further, when the system parameter is greater than the preset first threshold, it may be further determined whether a duration that the system parameter is greater than the preset first threshold is greater than a preset time threshold, if so, step 340 is performed, and if not, step 360 is performed.
In step 340, an alarm signal is generated.
And step 350, cleaning the background application programs according to the alarm signals and the sequence of the at least one background application program.
Specifically, the application programs ranked first are preferably cleaned up according to the order in the sorted list. That is, cleaning is performed in the order of background applications from high to low.
Further, the number of applications cleaned each time may be set, for example, if the number of applications cleaned each time is set to "1", the application at the 1 st position in the ordered list is cleaned preferentially; or if the number of the application programs cleaned each time is set to be 2, the application programs at the 1 st and 2 nd positions in the ordered list are cleaned preferentially, and the like.
As a further improvement to this embodiment, step 320-360 may be repeated for each cleaning of a certain number (e.g., one or two) of background applications. That is, after step 350, the process returns to step 320 to monitor the current system parameter of the mobile terminal again, and determines whether the current system parameter is greater than the preset first threshold, if the current system parameter is still greater than the first threshold, step 350 is performed until the current system parameter is less than the preset first threshold, and step 360 is performed, and the application program is stopped being cleaned.
According to the method for cleaning the background application programs of the mobile terminal, the at least one background application program of the mobile terminal is sequenced according to the preset rule, the system parameters of the mobile terminal occupied by the at least one background application program are monitored, when the system parameters are larger than the preset first threshold value, the alarm signal is generated, the background application program is cleaned according to the alarm signal and the sequencing of the at least one background application program, the application program occupying the system space can be automatically cleaned, the application program cleaning of the mobile terminal is optimized, and the mobile phone operation fluency is improved.
Example two
Referring to fig. 6, a method for cleaning a background application of a mobile terminal according to a second embodiment of the present invention is shown. In the second embodiment, the method for cleaning the background application of the mobile terminal is a further improvement on the first embodiment, except that the steps 610-550 of the second embodiment can replace the steps 410-430 of the first embodiment.
And step 620, calculating a ranking value according to the use frequency and the switching time point.
And step 630, generating a sorted list according to the sorted values.
The contents of the above steps 610 to 630 are the same as those of the steps 410 to 430 in the first embodiment, and for the same contents, the description of this embodiment is omitted.
In step 640, a remove clean instruction for the first background application is received.
Specifically, the at least one background application includes a first background application and at least one second background application, and receives a removal cleaning instruction for the first background application, which indicates that the user does not want to clean the first background application, and the first background application is an application to be removed, that is, an application that does not need to be cleaned.
Illustratively, as shown in fig. 5, at a display frame of each application program, a function icon in the form of "remove" is provided, and an instruction that a user triggers the function icon, that is, a removal cleaning instruction, is received.
At step 650, the first background application is removed from the ordered list.
Specifically, the first background application is removed from the ordered list, and the ordering value of the first background application is updated to 0, which means that the first background application is not cleaned.
Further, if the removed first background application program needs to be cleaned up subsequently, the removed first background application program may be added to the sorted list again, and the sorted value of the cleaned up first background application program is calculated according to the above process.
According to the method for cleaning the background application program of the mobile terminal, when the removing and cleaning instruction for the first background application program is received, the first background application program is removed from the ordered list, and the removing or cleaning can be performed according to the needs of the user, so that the humanized operation of the method is embodied, and the user experience is improved.
EXAMPLE III
Referring to fig. 7, a method for cleaning a background application of a mobile terminal according to a third embodiment of the present invention is shown. In the third embodiment, the method for cleaning the background application of the mobile terminal is a further improvement on the basis of the first embodiment or the second embodiment, except that steps 710 to 750 of the third embodiment can replace steps 330 to 360 of the first embodiment.
Specifically, the first threshold is greater than the second threshold.
At step 730, an alarm signal is generated.
In step 750, it is determined whether the system parameter is greater than the second threshold, if yes, step 760 is entered, and if not, step 770 is entered.
Specifically, if the system parameter is greater than the second threshold, then: if the system parameter is in the interval smaller than the first threshold and larger than the second threshold, step 760 is entered. If the system parameter is less than the second threshold, go to step 770.
Specifically, when the system parameter is in the interval smaller than the first threshold and larger than the second threshold, step 730 is not immediately performed, but it is further determined whether the duration of the interval is larger than a preset time threshold, if so, step 730 is performed, and if not, step 770 is performed.
That is, referring to fig. 8, in the present embodiment, a preset time threshold, i.e. a difference between an ending time and a starting time of the system parameter in the interval, is used as the smoothing time. Step 730 is entered only if the smoothing time is exceeded, and step 770 is entered if less than the second threshold occurs for the duration of the smoothing time.
No alarm signal is generated, step 770.
According to the method for cleaning the background application program of the mobile terminal, by setting the first threshold and the second threshold of the system parameter, when the system parameter is in the interval smaller than the first threshold and larger than the second threshold, whether the duration time of the system parameter in the interval is larger than a preset time threshold is further judged, if yes, an alarm signal is generated, if not, the alarm signal is not generated, whether an alarm is generated is determined by adopting a multi-threshold and time smoothing mode, the condition of false alarm is avoided, and the user experience is improved.
Example four
Referring to fig. 9, a method for cleaning a background application of a mobile terminal according to a fourth embodiment of the present invention is shown. In the fourth embodiment, the method for cleaning background applications of a mobile terminal is a further improvement made on the basis of the first, second, or third embodiment, except that: the cleaning background application program further comprises:
Specifically, the difference between the system resources occupied by all the current background applications and the second threshold is calculated to serve as the system resources needing to be cleaned, and the background applications to be cleaned are screened out according to the system resources occupied by each background application and the sequence of the sequence values from high to low. For example, if the system resources to be cleaned up are 30%, the system resources occupied by the background applications at position 1, position 2, and position 3 in the ordered list are respectively: and 20%, 10% and 5%, the background application program to be cleaned is the background application program located at the 1 st and 2 nd positions in the ordered list and is the background application program to be cleaned.
Further, step 920 may also be replaced by the following steps:
the method comprises the following steps: calculating the difference value between the occupied system resource and a certain background application program;
step two: and judging whether the difference is smaller than a second threshold value, if so, taking the certain background program as the background application program to be cleaned, and if not, returning to the step one for calculating the difference of other background application programs until the obtained current difference is smaller than the second threshold value.
Specifically, the sequence values are sequentially calculated from high to low, and a parameter I of the background application to be cleaned is a system resource occupied by at least one background application, namely a resource occupied by a certain background application. And if the I is smaller than the second threshold value, the certain background application program is the background application program to be cleaned. If the value of I is greater than the second threshold, continuing to calculate the value of I', which is the system resource occupied by at least one background application program — the resource occupied by another background application program, and so on, until the difference value between the occupied system resource and the second threshold.
At step 930, the background application to be cleaned is cleaned.
According to the method for cleaning the background application program of the mobile terminal, the system resources occupied by at least one background application program are obtained, the difference value between the occupied system resources and the second threshold value is calculated to serve as the background application program to be cleaned, and the background application program to be cleaned is cleaned, so that the process for cleaning the background application program is detailed, the accuracy for cleaning the application program is improved, and the fluency of the mobile terminal is effectively improved.
EXAMPLE five
The invention further provides a device for cleaning the background application program of the mobile terminal.
Referring to fig. 10, fig. 10 is a schematic block diagram of an apparatus for cleaning a background application of a mobile terminal according to a fifth embodiment.
The embodiment is a device for cleaning background applications of a mobile terminal, and the device comprises:
the sorting module 1010 is configured to sort at least one background application of the mobile terminal according to a preset rule.
Specifically, the sorting module 1010 monitors the usage of each background application of the mobile terminal in the background, and records corresponding data. In order to be able to preferentially clean up the applications with long standby time in the background and low use frequency in the subsequent steps, the currently running background applications need to be sorted. Referring to fig. 11, the sorting module 1010 further includes:
a first obtaining unit 1110, configured to obtain a usage frequency of each background application and a switching time point for switching from a foreground to a background.
Specifically, the first obtaining unit 1110 obtains the frequency of use of each background application:
the first acquisition unit 1110 records the cumulative statistical time (in units of "day") and the cumulative number of times of opening of the application. The term "cumulative number of openings" means: the number of times the application switches from the off state to the foreground use state within the "cumulative count time". The frequency of use of the application is: cumulative open times ÷ cumulative statistical time.
Further, in addition to recording the cumulative statistical time and the cumulative opening times, the first obtaining unit 1110 needs to record the latest opening time of the application program. "last opening time" means: and the application program is switched from the closing state to the foreground using state for the last time. Alternatively, the unit of the "last opening time" is: date and time in the format: yyyy-mm-dd hour (year-month-day: hour: minute) and hour (hour: minute).
Further, if the application is opened again after the "last opening time" (defined as the current opening time), the first acquiring unit 1110 needs to update the accumulated opening times and the accumulated statistical days and recalculate the usage frequency.
Further, the first acquisition unit 1110 updates the "current opening time" to the "latest opening time" before or after recalculating the use frequency.
Illustratively, if the cumulative number of openings is: count1, the cumulative statistical time is: days1, the last open time was: t 1. If the current opening time of the record is t2, the record of the application program is updated as follows: the cumulative opening times count2 is count1+1, and the cumulative statistical time days2 is days1+ (t2-t1), and the application program has the use frequency: count2 ÷ days2, and update t2 to the last recorded open time.
Further, in this example, if the value of t2-t1 is greater than 1 (day), then days2 ═ days1+ 1; if the value of t2-t1 is less than 1 (day), days2 is not days 1.
Further, in this example, if after t2, the current open time is recorded again as t3, then the record for the application is updated as: the cumulative opening times count3 is count2+1, and the cumulative statistical time days3 is days2+ (t3-t2), the frequency of use of the application is: count3 ÷ days3, and update t3 to the last recorded open time.
The first obtaining unit 1110 obtains a switching time point when each background application switches from the foreground to the background, and a current time point of the system.
A first calculating unit 1120, configured to calculate a ranking value according to the usage frequency and the switching time point.
Specifically, if the switching time point of the application from the foreground to the background is T1 (unit: min) and the current time point of the system is T2, the first calculation unit 1120 calculates the ranking value as (T2-T1) ÷ opening frequency.
Illustratively, if the application switches from foreground to background at 13:00, the time when the ranking value is counted is 13:10, the first calculation unit 1120 calculates the ranking value as 10 ÷ opening frequency.
The sorting unit 1130 is configured to generate a sorted list according to the sorting value.
Specifically, the sorting unit 1130 sorts by the sorting value from high to low, and generates a sorted list. That is, the higher the ranking value of an application in the ranking list, the earlier the order thereof, and as an application to be cleaned up in the following priority.
Furthermore, in the generated ranking list, the order of each application program can be adjusted according to the instruction of the user for dragging the application program, so that the user can adjust the ranking value of the application program according to personal preference and the importance degree of the application program. Referring to fig. 5, in an interface diagram of the ordered list, parameters such as the use frequency and the switching time of the application a and the application B are displayed, and in an actual operation, a user may adjust the sequence of the application program by dragging the display frame of the application a or the application B up and down, so as to form a new ordered list.
If the sequence of the applications in the ordered list is adjusted, in order to make the adjusted ordering value of the applications greater than the ordering value of the next applications, a difference value is generated, and the difference value is recorded, and the ordering unit 1130 calculates the ordering value of the adjusted applications and updates the ordering value to: (T2-T1) ÷ opening frequency + differential value.
Further, the process of generating the difference value is:
the first condition is as follows:
assuming that the position of an application 4 in the sorted list is the 4 th position, the corresponding sorting value is sort4, and the sorting values of the applications 1 and 2 in the 1 st and 2 nd positions in the sorted list are sort1 and sort2, respectively. If the application 4 of sort4 is adjusted to the 2 nd bit, the difference value is sort 2-sort 4+ (sort 1-sort 2) ÷ 2.
Case two:
based on the condition of case one, if the application 4 of sort4 is adjusted to bit 1, the difference value is sort1-sort4+ additional value. The additional value is set to ensure that the ranking value of the application 4 after the position adjustment can be larger than the ranking values of other applications. In the present embodiment, the additional value may be set to 0.01. In other embodiments, the additional value may be set to other values, and the present invention is not particularly limited herein.
A receiving unit 1140, configured to receive a remove clean instruction for the first background application.
Specifically, the at least one background application includes a first background application and at least one second background application, and the receiving unit 1140 receives a removal cleaning instruction for the first background application, which indicates that the user does not want to clean the first background application, and the first background application is an application to be removed, that is, an application that does not need to be cleaned.
Illustratively, as shown in fig. 5, at a display frame of each application, a function icon in the form of "remove" is provided, and the receiving unit 1140 receives an instruction that a user triggers the function icon, that is, a removal cleaning instruction.
A removal unit 1150 is used to remove the first background application from the sorted list.
Specifically, the removing unit 1150 removes the first background application from the sorted list, and updates the sorted value of the first background application to 0, which represents that the first background application is not cleaned.
Further, if the removed first background application program needs to be cleaned up subsequently, the removed first background application program may be added to the sorted list again, and the sorted value of the cleaned up first background application program is calculated according to the above process.
And a monitoring module 1020, configured to monitor a system parameter that the at least one background application occupies the mobile terminal.
Specifically, the system parameters may include: the application program occupies data of a Central Processing Unit (CPU), data of a memory, and the like.
Further, the monitoring module 1020 may be triggered to monitor system parameters of the mobile terminal occupied by the at least one background application according to an instruction of the user; the monitoring module 1020 may also be triggered to monitor system parameters of the mobile terminal according to the detection of a sudden change in the battery power of the mobile terminal.
The determining module 1030 is configured to determine whether the system parameter is greater than a preset first threshold, trigger the alarm module 1040 if the system parameter is greater than the preset first threshold, and not generate an alarm signal if the system parameter is not greater than the preset first threshold.
Specifically, a first threshold is preset, if the determining module 1030 determines that the system parameter is greater than the preset first threshold, the warning module 1040 is triggered, and if the system parameter is less than the preset first threshold, the warning signal is not generated.
Further, when the system parameter is greater than the preset first threshold, the determining module 1030 may further determine whether a duration that the system parameter is greater than the preset first threshold is greater than a preset time threshold, if so, the alarm module 1040 is triggered, and if not, the alarm signal is not generated.
The alarm module 1040 is configured to generate an alarm signal.
And a cleaning module 1050 for cleaning the background applications according to the alarm signal and the sequence of the at least one background application.
Specifically, the cleaning module 1050 preferentially cleans the top-ranked applications according to the order in the sorted list. That is, the cleaning module 1050 cleans the background applications in order from high to low.
Further, the number of applications cleaned each time may be set, for example, if the number of applications cleaned each time is set to "1", the cleaning module 1050 preferentially cleans the application at position 1 in the sorted list; alternatively, if the number of applications to be cleaned up at a time is set to "2", the cleaning module 1050 preferentially cleans up the 1 st and 2 nd applications in the sorted list, and the like.
As a further improvement to this embodiment, the monitoring module 1020 may be triggered again each time a certain number (e.g., one or two) of background applications are cleaned. That is to say, after the cleaning module 1050 cleans the background application, the monitoring module 1020 may be triggered again to monitor the current system parameter of the mobile terminal again, and the determining module 1030 determines whether the current system parameter is greater than the preset first threshold, and if the current system parameter is still greater than the first threshold, the cleaning module 1050 is triggered again, until the current system parameter is less than the preset first threshold, the cleaning of the application is stopped.
The device for cleaning the background applications of the mobile terminal provided by this embodiment sorts at least one background application of the mobile terminal according to a preset rule through the sorting module 1010, the monitoring module 1020 monitors that the at least one background application occupies system parameters of the mobile terminal, when the judging module 1030 judges that the system parameters are greater than a preset first threshold, the warning module 1040 is triggered to generate a warning signal, and the cleaning module 1050 cleans the background applications according to the warning signal and the sorting of the at least one background application, so that the application occupying the system space can be automatically cleaned, thereby optimizing the application cleaning of the mobile terminal, and improving the smoothness of the operation of the mobile phone.
EXAMPLE six
In a sixth embodiment, the apparatus for cleaning background applications of a mobile terminal is a further improvement made on the basis of the fifth embodiment, except that the apparatus further includes: the setting module is used for setting a first threshold and a second threshold of the system parameters, wherein the first threshold is larger than the second threshold.
Correspondingly, when the judging module judges that the system parameter is smaller than the first threshold, whether the system parameter is larger than a second threshold is further judged, if yes, whether the duration time of the system parameter in the interval is larger than a preset time threshold is further judged, if yes, the warning module is triggered, and if not, no warning signal is generated.
Specifically, when the determination module determines that the system parameter is in an interval smaller than the first threshold and larger than the second threshold, the alarm module is not triggered immediately, but further determines whether the duration of the interval is larger than a preset time threshold, if so, the alarm module is triggered, and if not, the alarm signal is not generated.
That is, referring to fig. 8, in the present embodiment, a preset time threshold, i.e. a difference between an ending time and a starting time of the system parameter in the interval, is used as the smoothing time. And triggering the alarm module only when the smooth time is exceeded, and entering not to generate an alarm signal if the smooth time is less than a second threshold value within the length of the smooth time.
The device for cleaning the background application program of the mobile terminal provided by the embodiment sets the first threshold and the second threshold of the system parameter through the setting module, when the judging module judges that the system parameter is in the interval which is smaller than the first threshold and larger than the second threshold, whether the duration time of the system parameter in the interval is larger than a preset time threshold is further judged, if yes, the alarm module is triggered to generate an alarm signal, if not, the alarm signal cannot be generated, whether an alarm is generated is determined by adopting a multi-threshold and time smoothing processing mode, the condition of false alarm is avoided, and the user experience is improved.
EXAMPLE seven
Referring to fig. 12, a device for cleaning background applications of a mobile terminal according to a seventh embodiment of the present invention is shown. In a seventh embodiment, the apparatus for cleaning background applications of a mobile terminal is a further improvement made on the basis of the fifth embodiment or the sixth embodiment, except that the cleaning module further includes:
a second obtaining unit 1210, configured to obtain a system resource occupied by at least one background application.
The second calculating unit 1220 is configured to calculate a difference between the occupied system resource and the second threshold, and use the difference as the background application to be cleaned.
Specifically, the second calculating unit 1220 calculates the difference between the system resources occupied by all the background applications and the second threshold, and selects the background applications to be cleaned according to the system resources occupied by each background application and the sequence of the ranking values from high to low. For example, if the system resources to be cleaned up are 30%, the system resources occupied by the background applications at position 1, position 2, and position 3 in the ordered list are respectively: and 20%, 10% and 5%, the background application program to be cleaned is the background application program located at the 1 st and 2 nd positions in the ordered list and is the background application program to be cleaned.
Further, the second calculating unit 1220 may be further configured to: calculating the difference value between the occupied system resource and a certain background application program; correspondingly, the determining module is further configured to determine whether the difference is smaller than a second threshold, if so, use the certain background program as the background application program to be cleaned, and if not, return to triggering the second calculating unit 1220 to calculate the difference of the other background application programs again until the obtained current difference is smaller than the second threshold.
Specifically, the second calculating unit 1220 calculates sequentially according to the sequence values from high to low, where a parameter I of the background application to be cleaned is a system resource occupied by at least one background application — a resource occupied by a certain background application. And if the I is smaller than the second threshold value, the certain background application program is the background application program to be cleaned. If the value of I is greater than the second threshold, continuing to calculate the value of I', which is the system resource occupied by at least one background application program — the resource occupied by another background application program, and so on, until the difference value between the occupied system resource and the second threshold.
A cleaning unit 1230, configured to clean the background application to be cleaned.
In the device for cleaning the background application of the mobile terminal provided by this embodiment, the second obtaining unit 1210 obtains the system resource occupied by at least one background application, the second calculating unit 1220 calculates the difference between the occupied system resource and the second threshold as the background application to be cleaned, and triggers the cleaning unit 1230 to clean the background application to be cleaned, so as to refine the process of cleaning the background application, improve the accuracy of cleaning the application, and further effectively improve the smoothness of the mobile terminal.
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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 invention 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 invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A method for cleaning background application programs of a mobile terminal is characterized by comprising the following steps:
sequencing at least one background application program of the mobile terminal according to a preset rule, wherein the preset rule comprises the following steps: the ranking value of each background application program is (T2-T1) ÷ use frequency, wherein T1 is the switching time point of the background application program from the foreground to the background, and T2 is the current time point of the system;
according to an instruction of a user for dragging the application program, adjusting the sequence of each background application program, generating a corresponding difference value, and updating the sequence value of the adjusted application program into: (T2-T1) ÷ frequency of use + differential value for ensuring that the adjusted application program has a ranking value greater than the ranked application program;
monitoring system parameters of the mobile terminal occupied by the at least one background application program;
when the system parameter is larger than a preset first threshold value, generating an alarm signal;
and cleaning the background application programs according to the alarm signals and the sequencing of the at least one background application program.
2. The method for cleaning background applications of a mobile terminal according to claim 1, wherein said sorting at least one background application of a mobile terminal according to a preset rule comprises:
acquiring the use frequency of each background application program and a switching time point for switching from a foreground to a background;
calculating a ranking value according to the use frequency and the switching time point;
and generating a sorted list according to the sorting value.
3. A method for cleaning background applications of a mobile terminal as claimed in claim 2, wherein said at least one background application comprises a first background application and at least one second background application, and after said generating of the ordered list according to said ordered value, said method further comprises:
receiving a removal cleaning instruction for the first background application program;
removing the first background application from the ordered list.
4. The method for cleaning background applications of a mobile terminal according to claim 1, wherein before generating an alarm signal when the system parameter is greater than a preset first threshold, the method further comprises:
setting a first threshold and a second threshold of the system parameter, wherein the first threshold is larger than the second threshold;
when the system parameter is in an interval which is smaller than the first threshold and larger than the second threshold, judging whether the duration of the system parameter in the interval is larger than a preset time threshold, and if so, generating an alarm signal; if not, no alarm signal is generated.
5. A method for cleaning background applications of a mobile terminal according to claim 4, wherein the cleaning of the background applications comprises:
acquiring system resources occupied by the at least one background application program;
calculating the difference value between the occupied system resource and the second threshold value to serve as a background application program to be cleaned;
and cleaning the background application program to be cleaned.
6. An apparatus for cleaning background applications of a mobile terminal, the apparatus comprising:
the sequencing module is used for sequencing at least one background application program of the mobile terminal according to a preset rule, wherein the preset rule comprises the following steps: the ranking value of each background application program is (T2-T1) ÷ use frequency, wherein T1 is the switching time point of the background application program from the foreground to the background, and T2 is the current time point of the system;
the sorting module is further configured to adjust the order of each background application program according to an instruction of a user dragging an application program, generate a corresponding difference value, and update the adjusted sorting value of the application program as: (T2-T1) ÷ frequency of use + differential value for ensuring that the adjusted application program has a ranking value greater than the ranked application program;
the monitoring module is used for monitoring the system parameters of the mobile terminal occupied by the at least one background application program;
the alarm module is used for generating an alarm signal when the system parameter is greater than a preset first threshold value;
and the cleaning module is used for cleaning the background application programs according to the alarm signal and the sequencing of the at least one background application program.
7. The apparatus for cleaning background applications of a mobile terminal according to claim 6, wherein the sorting module comprises:
the first acquisition unit is used for acquiring the use frequency of each background application program and the switching time point for switching from the foreground to the background;
the first calculation unit is used for calculating a ranking value according to the use frequency and the switching time point;
and the sorting unit is used for generating a sorting list according to the sorting value.
8. An apparatus for cleaning background applications of a mobile terminal as claimed in claim 7, wherein said at least one background application includes a first background application and at least one second background application, and said sequencing module further comprises:
the receiving unit is used for receiving a removal and cleaning instruction of the first background application program;
a removal unit to remove the first background application from the ordered list.
9. An apparatus for cleaning background applications of a mobile terminal as claimed in claim 6, wherein said apparatus further comprises: the setting module is used for setting a first threshold and a second threshold of the system parameter, wherein the first threshold is larger than the second threshold;
the judging module is used for judging whether the duration time of the system parameter in the interval is greater than a preset time threshold value or not when the system parameter is in the interval which is smaller than the first threshold value and greater than the second threshold value, and triggering an alarm module to generate an alarm signal if the duration time of the system parameter in the interval is greater than the preset time threshold value; if not, no alarm signal is generated.
10. The apparatus for cleaning background applications of a mobile terminal according to claim 9, wherein the cleaning module comprises:
the second acquisition unit is used for acquiring the system resources occupied by the at least one background application program;
the second calculating unit is used for calculating the difference value between the occupied system resource and the second threshold value to serve as a background application program to be cleaned;
and the cleaning unit is used for cleaning the background application program to be cleaned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610965905.1A CN106572250B (en) | 2016-10-31 | 2016-10-31 | Method and device for cleaning background application program of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610965905.1A CN106572250B (en) | 2016-10-31 | 2016-10-31 | Method and device for cleaning background application program of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106572250A CN106572250A (en) | 2017-04-19 |
CN106572250B true CN106572250B (en) | 2021-06-15 |
Family
ID=58536049
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610965905.1A Active CN106572250B (en) | 2016-10-31 | 2016-10-31 | Method and device for cleaning background application program of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106572250B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107450951B (en) * | 2017-07-31 | 2020-08-04 | Oppo广东移动通信有限公司 | Application processing method and device, storage medium and terminal |
CN107291543B (en) * | 2017-07-31 | 2020-08-07 | Oppo广东移动通信有限公司 | Application processing method and device, storage medium and terminal |
CN107704317B (en) * | 2017-08-25 | 2022-02-25 | 深圳天珑无线科技有限公司 | Intelligent device and application management method thereof and device with storage function |
CN107643925A (en) * | 2017-09-30 | 2018-01-30 | 广东欧珀移动通信有限公司 | Background application method for cleaning, device, storage medium and electronic equipment |
CN107943534B (en) * | 2017-11-14 | 2021-02-02 | Oppo广东移动通信有限公司 | Background application program closing method and device, storage medium and electronic equipment |
CN108881360B (en) * | 2017-11-22 | 2021-06-29 | 视联动力信息技术股份有限公司 | Terminal control method and device based on video network |
CN108304258A (en) * | 2018-02-28 | 2018-07-20 | 维沃移动通信有限公司 | A kind of process management method and mobile terminal |
CN109271292A (en) * | 2018-09-06 | 2019-01-25 | 北京小米移动软件有限公司 | Power consumption information acquisition method and device |
CN109960397A (en) * | 2019-03-28 | 2019-07-02 | 联想(北京)有限公司 | Control method, control device, electronic equipment and computer readable storage medium |
CN111443926B (en) * | 2020-04-22 | 2023-10-13 | 百度在线网络技术(北京)有限公司 | Method, device, equipment and storage medium for cleaning data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651738A (en) * | 2008-08-13 | 2010-02-17 | Lg电子株式会社 | Mobile terminal and method of controlling operation of the mobile terminal |
CN104023113A (en) * | 2013-03-01 | 2014-09-03 | 联想(北京)有限公司 | Method for information processing and electronic equipment |
CN105117275A (en) * | 2015-07-27 | 2015-12-02 | 上海斐讯数据通信技术有限公司 | Graphical process management device and method |
CN105511733A (en) * | 2016-01-30 | 2016-04-20 | 深圳天珑无线科技有限公司 | Method, system and electronic device for adjusting multitask arraying sequence through pressure touch control |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101453519B1 (en) * | 2011-08-31 | 2014-10-27 | 주식회사 케이티 | Mobile terminal and Method for providing user interface thereof |
CN103092685A (en) * | 2012-12-21 | 2013-05-08 | 广东欧珀移动通信有限公司 | Method and device for closing application program |
CN104298613B (en) * | 2014-09-29 | 2018-02-23 | 广州猎豹网络科技有限公司 | The method for cleaning and terminal device of a kind of Installed System Memory |
CN104298612A (en) * | 2014-09-30 | 2015-01-21 | 北京金山安全软件有限公司 | Method and device for cleaning memory in mobile terminal and mobile terminal |
CN104714895B (en) * | 2015-03-23 | 2018-02-02 | 努比亚技术有限公司 | A kind of mobile terminal and its method and apparatus for improving the speed of service |
CN105159772A (en) * | 2015-09-27 | 2015-12-16 | 陆俊 | Control method for memory of mobile terminal and mobile terminal |
CN105468416A (en) * | 2015-11-30 | 2016-04-06 | 魅族科技(中国)有限公司 | Application program clearing method and terminal |
CN105354093A (en) * | 2015-12-09 | 2016-02-24 | 广东欧珀移动通信有限公司 | Memory management method and mobile terminal |
-
2016
- 2016-10-31 CN CN201610965905.1A patent/CN106572250B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651738A (en) * | 2008-08-13 | 2010-02-17 | Lg电子株式会社 | Mobile terminal and method of controlling operation of the mobile terminal |
CN104023113A (en) * | 2013-03-01 | 2014-09-03 | 联想(北京)有限公司 | Method for information processing and electronic equipment |
CN105117275A (en) * | 2015-07-27 | 2015-12-02 | 上海斐讯数据通信技术有限公司 | Graphical process management device and method |
CN105511733A (en) * | 2016-01-30 | 2016-04-20 | 深圳天珑无线科技有限公司 | Method, system and electronic device for adjusting multitask arraying sequence through pressure touch control |
Also Published As
Publication number | Publication date |
---|---|
CN106572250A (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106572250B (en) | Method and device for cleaning background application program of mobile terminal | |
CN104731712B (en) | Method for automatically cleaning cache data and mobile terminal | |
CN105718027B (en) | The management method and mobile terminal of background application | |
CN106210328B (en) | Information display device and method | |
CN105188098B (en) | Network switching device and network switching method of mobile terminal | |
CN106227867B (en) | A kind of method and device of file management | |
CN104731480B (en) | Image display method and device based on touch screen | |
CN106533928B (en) | Method and device for updating unread message reminding identification | |
CN105303398B (en) | Information display method and system | |
CN106249989B (en) | Method for arranging social application program icons during content sharing and mobile terminal | |
CN106778176B (en) | Information processing method and mobile terminal | |
CN110928708B (en) | Icon display method and device, electronic equipment and computer readable storage medium | |
CN107066604B (en) | Junk file cleaning method and terminal | |
CN106598538B (en) | Instruction set updating method and system | |
CN105072279B (en) | A kind of back-up device based on mobile terminal and method | |
CN105101166B (en) | A kind of communication traffic management system and method | |
CN106231657B (en) | Method and device for switching power saving modes of double-screen mobile terminal | |
CN106484534B (en) | Control method and control device for displayed mobile terminal | |
CN106161790B (en) | Mobile terminal and control method thereof | |
CN106371704B (en) | Application shortcut layout method of screen locking interface and terminal | |
CN106095072B (en) | A kind of control method, smart machine and server | |
CN105939425B (en) | Screen dynamic monitoring device and method | |
CN106066865B (en) | Application recommendation device and method | |
CN105260096B (en) | A kind of method and mobile terminal controlling user's operation | |
CN106774860B (en) | Intelligent eliminating method and system for information corner mark |
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 |