CN107632882B - Method for managing background application program and terminal equipment - Google Patents

Method for managing background application program and terminal equipment Download PDF

Info

Publication number
CN107632882B
CN107632882B CN201710748419.9A CN201710748419A CN107632882B CN 107632882 B CN107632882 B CN 107632882B CN 201710748419 A CN201710748419 A CN 201710748419A CN 107632882 B CN107632882 B CN 107632882B
Authority
CN
China
Prior art keywords
index
preset
temperature
electric quantity
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710748419.9A
Other languages
Chinese (zh)
Other versions
CN107632882A (en
Inventor
谢照霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201710748419.9A priority Critical patent/CN107632882B/en
Publication of CN107632882A publication Critical patent/CN107632882A/en
Application granted granted Critical
Publication of CN107632882B publication Critical patent/CN107632882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention relates to the technical field of terminals, and discloses a method for managing background application programs and terminal equipment, wherein the method comprises the following steps: detecting the current residual capacity and the current internal temperature of the terminal equipment; obtaining a target electric quantity index by taking the current residual electric quantity as a basis, and obtaining a target temperature index by taking the current internal temperature as a basis; acquiring a current application cleaning index of the terminal equipment by taking the target electric quantity index and the target temperature index as a basis; judging whether the current application cleaning index is not less than a preset cleaning index or not; when the current application cleaning index is not less than the preset cleaning index, closing all background application programs of the terminal equipment; therefore, the embodiment of the invention can improve the standby time of the terminal equipment, prevent the terminal equipment from abnormal heating, prolong the service life of the battery and the terminal equipment and improve the use safety.

Description

Method for managing background application program and terminal equipment
Technical Field
The invention relates to the technical field of terminals, in particular to a method for managing background application programs and terminal equipment.
Background
Mobile terminals such as smart phones, tablet computers and the like become terminal devices which are visible everywhere in daily life of people, along with the intelligentization of the mobile terminals, functions which can be realized are more and more, and accordingly, more and more terminal version application programs are more and more suitable for the mobile terminals. In actual use, the more application programs run by the mobile terminal, the higher the power consumption is, the shorter the standby time is, and the requirement of a user on standby time cannot be met to a certain extent; meanwhile, in the process of long-time running of the application program, the mobile terminal is caused to be abnormally heated, and potential safety hazards appear in use, which will give users bad use experience.
Disclosure of Invention
The embodiment of the invention discloses a method for managing background application programs and terminal equipment, which are used for solving the technical problems that the standby time length is influenced and abnormal heating is caused because too many application programs are operated by the conventional terminal equipment, so that the standby time length of the terminal equipment is prolonged, the terminal equipment is prevented from abnormal heating, and the comfort degree of a user for using the terminal equipment is improved.
The invention discloses a method for managing background application programs in a first aspect, which can comprise the following steps:
detecting the current residual capacity and the current internal temperature of the terminal equipment;
acquiring a target electric quantity index by taking the current residual electric quantity as a basis, and acquiring a target temperature index by taking the current internal temperature as a basis;
acquiring a current application cleaning index of the terminal equipment by taking the target electric quantity index and the target temperature index as a basis;
judging whether the current application cleaning index is not less than a preset cleaning index or not;
and when the current application cleaning index is not less than the preset cleaning index, closing all background application programs of the terminal equipment.
As an optional implementation manner, in the first aspect of the present invention, the obtaining a target power index based on the current remaining power includes:
identifying a target preset electric quantity range to which the current residual electric quantity belongs from a plurality of preset electric quantity ranges;
acquiring a preset electric quantity index acquisition mode corresponding to the target preset electric quantity range;
and obtaining the target electric quantity index based on the preset electric quantity index obtaining mode and the current residual electric quantity.
As an optional implementation manner, in the first aspect of the present invention, the obtaining a target temperature index based on the current internal temperature includes:
identifying a target preset temperature range to which the current internal temperature belongs from a plurality of preset temperature ranges;
acquiring a preset temperature index acquisition mode corresponding to the target preset temperature range;
and obtaining the target temperature index based on the preset temperature index obtaining mode and the current internal temperature.
As an optional implementation manner, in the first aspect of the present invention, before the detecting the current remaining power and the current internal temperature of the terminal device, the method further includes:
starting a temperature detection device externally arranged on the terminal equipment, and detecting the external real-time temperature of the terminal equipment;
judging whether the external real-time temperature is greater than a preset temperature threshold value or not;
and when the external real-time temperature is greater than the preset temperature threshold, executing the step of detecting the current residual capacity and the current internal temperature of the terminal equipment.
As an optional implementation manner, in the first aspect of the present invention, before the detecting the current remaining power and the current internal temperature of the terminal device, the method further includes:
counting a first quantity corresponding to all background application programs of the terminal equipment; and
counting a second number corresponding to all foreground application programs of the terminal equipment;
counting the total number of the first number and the second number;
judging whether the total number exceeds a preset opening threshold value;
and when the total quantity exceeds the preset starting threshold value, executing the step of detecting the current residual capacity and the current internal temperature of the terminal equipment.
A second aspect of the present invention discloses a terminal device, which may include:
the parameter detection unit is used for detecting the current residual capacity and the current internal temperature of the terminal equipment;
an index obtaining unit, configured to obtain a target power index based on the current remaining power, and obtain a target temperature index based on the current internal temperature;
the index obtaining unit is further used for obtaining a current application cleaning index of the terminal equipment according to the target electric quantity index and the target temperature index;
the judging unit is used for judging whether the current application cleaning index is not less than a preset cleaning index or not;
and the closing unit is used for closing all background application programs of the terminal equipment when the current application cleaning index is not less than the preset cleaning index.
As an optional implementation manner, in the second aspect of the present invention, the manner of acquiring the target power index by using the current remaining power as a basis is specifically:
the index obtaining unit is specifically configured to identify a target preset electric quantity range to which the current remaining electric quantity belongs from a plurality of preset electric quantity ranges; acquiring a preset electric quantity index acquisition mode corresponding to the target preset electric quantity range; and obtaining the target electric quantity index based on the preset electric quantity index obtaining mode and the current residual electric quantity.
As an optional implementation manner, in the second aspect of the present invention, the manner of obtaining the target temperature index by using the current internal temperature as a basis is specifically:
the index obtaining unit is specifically configured to identify a target preset temperature range to which the current internal temperature belongs from a plurality of preset temperature ranges; acquiring a preset temperature index acquisition mode corresponding to the target preset temperature range; and obtaining the target temperature index based on the preset temperature index obtaining mode and the current internal temperature.
As an optional implementation manner, in the second aspect of the present invention, the terminal device further includes:
the external temperature detection unit is used for starting a temperature detection device externally arranged on the terminal equipment to detect the external real-time temperature of the terminal equipment before the parameter detection unit detects the current residual electric quantity and the current internal temperature of the terminal equipment; judging whether the external real-time temperature is greater than a preset temperature threshold value or not;
the parameter detection unit is specifically configured to execute the detection of the current remaining power and the current internal temperature of the terminal device when the external real-time temperature detected by the external temperature detection unit is greater than the preset temperature threshold.
As an optional implementation manner, in the second aspect of the present invention, the terminal device further includes:
the statistical unit is used for counting the first quantity corresponding to all background application programs of the terminal equipment before the parameter detection unit detects the current residual electric quantity and the current internal temperature of the terminal equipment; counting a second number corresponding to all foreground application programs of the terminal equipment; and counting the total number of the first number and the second number; judging whether the total number exceeds a preset opening threshold value;
the parameter detection unit is specifically configured to perform the detection of the current remaining power and the current internal temperature of the terminal device when the total number counted by the counting unit exceeds the preset starting threshold.
A third aspect of the present invention discloses a terminal device, which may include:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method for managing background applications as disclosed in the first aspect of the invention.
A fourth aspect of the invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method for managing background applications as disclosed in the first aspect of the invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the current residual capacity and the current internal temperature of the terminal equipment are detected, a target capacity index is obtained according to the current residual capacity, a target temperature index is obtained according to the current internal temperature, then the current application cleaning index of the terminal equipment is obtained according to the target capacity index and the target temperature index, and then all background application programs of the terminal equipment are closed when the current application cleaning index is not less than (greater than or equal to) the preset cleaning index. Therefore, by implementing the embodiment of the invention, the background application program can be managed by combining the residual power and the internal temperature, the standby time of the terminal equipment is prolonged by closing the background application program, and the service life of the battery is prolonged; meanwhile, the background application program is closed, so that abnormal heating of the terminal equipment caused by running of an excessive number of application programs of the terminal equipment is prevented, the use safety of the terminal equipment is improved, the service life of the battery is further prolonged, and the service life of the terminal equipment is further prolonged.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for managing background applications according to an embodiment of the present invention;
FIG. 2 is another flowchart illustrating a method for managing background applications according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a terminal device disclosed in the embodiment of the present invention;
fig. 4 is another schematic structural diagram of the terminal device disclosed in the embodiment of the present invention;
fig. 5 is another schematic structural diagram of the terminal device disclosed in the embodiment of the present invention;
fig. 6 is another schematic structural diagram of the terminal device disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be noted that the terms "first", "second", and the like in the description and claims of the present invention are used for distinguishing different objects, and are not used for describing a specific order. The terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a method for managing background application programs, which is used for prolonging the standby time of terminal equipment, preventing abnormal heating of the terminal equipment, prolonging the service life of a battery and the terminal equipment and improving the use safety. The embodiment of the invention also correspondingly discloses the terminal equipment.
The terminal Device according to the embodiment of the present invention may include, but is not limited to, various devices capable of having network connection capability, such as a Mobile phone, a Mobile tablet, a Personal Digital Assistant (PDA), a multimedia player, an electronic reader, a wearable Device, a Mobile Internet Device (MID), and a computer. The technical solution of the present invention will be described in detail with reference to specific embodiments from the perspective of terminal equipment.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for managing background applications according to an embodiment of the present invention; as shown in FIG. 1, a method for managing background applications may comprise:
101. the terminal device detects the current remaining power and the current internal temperature.
As an optional implementation manner, the terminal device collects the current internal temperature through a built-in temperature detection device.
As an optional implementation manner, before performing step 101, the terminal device further starts a temperature detection device external to the terminal device, and detects an external real-time temperature of the terminal device; judging whether the external real-time temperature is greater than a preset temperature threshold value; when the external real-time temperature is larger than a preset temperature threshold value, the terminal equipment executes the step of detecting the current residual electric quantity and the current internal temperature; through the embodiment, the terminal device detects the external real-time temperature, and when the external real-time temperature is greater than the preset temperature threshold, the terminal device executes step 101 as a trigger condition for executing the technical scheme of the invention. It can be seen from this embodiment that, when the external real-time temperature of the terminal device is too high, the terminal device may be affected, so that by executing the technical solution of the present invention, the terminal device is prevented from abnormally heating, i.e. from being too high in temperature, by closing the application program.
As another optional implementation manner, before executing step 101, the terminal device counts a first number corresponding to all background applications of the terminal device; counting a second number corresponding to all foreground application programs of the terminal equipment; counting the total number obtained by the first number and the second number; judging whether the total number exceeds a preset opening threshold value; when the total quantity exceeds a preset starting threshold value, executing a step of detecting the current residual electric quantity and the current internal temperature of the terminal equipment; through the embodiment, the step 101 can be executed when the total number of the foreground application programs and the background application programs of the terminal device exceeds a preset opening threshold, that is, the preset opening threshold is set to trigger execution of the technical scheme of the invention, and once the total number of the running (including the foreground application programs and the background application programs) application programs exceeds the opening threshold, the triggering condition for executing the step 101 is taken. It can be seen that in this embodiment, when the terminal device runs the application programs with excessive number, the terminal device is aggravated to generate heat, abnormal heating is caused, consumption of electric quantity is accelerated, standby time is shortened, in addition, the terminal device is caused to run slowly, a card machine or a dead halt phenomenon is caused to appear even, and very poor use experience is provided for users.
As another optional implementation manner, before performing step 101, the terminal device obtains the current time, and determines whether the current time belongs to a preset rest time; and when the current time belongs to the preset rest time, the terminal equipment executes the step of detecting the current residual capacity and the current internal temperature. For example, the preset rest time is set to 24:00 to 6:00 in the morning every day, and the terminal device executes the steps of detecting the current remaining power and the current internal temperature during the preset rest time, so that the running background application program can be closed.
102. The terminal equipment obtains a target electric quantity index by taking the current residual electric quantity as a basis, and obtains a target temperature index by taking the current internal temperature as a basis.
103. And the terminal equipment acquires the current application cleaning index by taking the target electric quantity index and the target temperature index as the basis.
104. And the terminal equipment judges whether the current application cleaning index is not less than a preset cleaning index. Wherein, when the current application cleaning index is not less than (greater than or equal to) the preset cleaning index, turning to step 105; and ending the process when the current application cleaning index is smaller than the preset cleaning index.
The current application cleaning index is used for indicating the current state of the terminal device, and comprises an electric quantity state and a temperature state, the larger the current application cleaning index is, the lower the electric quantity of the terminal device is, the higher the temperature is, and when the current application cleaning index is not smaller than the preset cleaning index, the terminal device is in a low electric quantity state and a high temperature state.
105. And the terminal equipment closes all background application programs.
As an optional implementation manner, before the terminal device closes all the background applications, the current time is obtained, whether the current time belongs to the rest time of the user is judged, and if the current time belongs to the rest time of the user, the terminal device closes all the background applications. And if the current time does not belong to the rest time of the user, popping up a prompt window on a display interface of the terminal equipment to prompt that the current electric quantity is too low and the current temperature is too high, and closing all background application programs after the preset time.
As an optional implementation manner, the closing, by the terminal device, all background applications specifically includes: the terminal equipment extracts the historical use frequency of the background application program, extracts the background application program frequently used by the user from the background application program according to the historical use frequency, then closes other background application programs except the frequently used background application program, and pops up consultation information on a display interface of the terminal equipment, wherein the consultation information is used for consulting whether the user closes the frequently used background application program and informing the user that the terminal equipment has too low electric quantity, too high temperature and the like.
As an optional implementation manner, the closing, by the terminal device, all background applications specifically includes: the method comprises the steps that the terminal equipment detects whether the terminal equipment is in a bright screen state at present, if the terminal equipment is in the bright screen state, a camera of the terminal equipment is started to shoot an external image, a face image is extracted from the external image, when the face image is extracted, the age of a user is analyzed according to the face image, when the age of the user is in a preset age range, a reminding message is sent to a mobile terminal bound with the terminal equipment, and meanwhile all background application programs are closed. In the implementation mode, when children use the terminal equipment, the plurality of application programs are unconsciously opened, so that the terminal equipment runs frequently, is abnormally heated and the like.
By implementing the embodiment, the terminal device detects the current remaining power and the current internal temperature, obtains a target power index according to the current remaining power, obtains a target temperature index according to the current internal temperature, obtains the current application cleaning index of the terminal device according to the target power index and the target temperature index, and closes all background applications of the terminal device when the current application cleaning index is not less than (greater than or equal to) the preset cleaning index. Therefore, by implementing the embodiment of the invention, the background application program can be managed by combining the residual power and the internal temperature, the standby time of the terminal equipment is prolonged by closing the background application program, and the service life of the battery is prolonged; meanwhile, the background application program is closed, so that abnormal heating of the terminal equipment caused by running of an excessive number of application programs of the terminal equipment is prevented, the use safety of the terminal equipment is improved, the service life of the battery is further prolonged, and the service life of the terminal equipment is further prolonged.
Example two
Referring to fig. 2, fig. 2 is another schematic flow chart illustrating a method for managing background applications according to an embodiment of the present invention; as shown in FIG. 2, a method for managing background applications may comprise:
201. the terminal device detects the current remaining power and the current internal temperature.
202. The terminal equipment identifies a target preset electric quantity range to which the current residual electric quantity belongs from a plurality of preset electric quantity ranges.
203. And the terminal equipment acquires a preset electric quantity index acquisition mode corresponding to the target preset electric quantity range.
The method comprises the steps of dividing the electric quantity of the terminal equipment into a plurality of preset electric quantity ranges in advance, and setting different preset electric quantity index acquisition modes aiming at different preset electric quantity ranges.
As an optional implementation manner, in the embodiment of the present invention, according to the electric quantity of the terminal device, three preset electric quantity ranges are set, which are a first preset electric quantity range, a second preset electric quantity range, and a third preset electric quantity range, respectively, where the first preset electric quantity range is [ 0, N1 ], the second preset electric quantity range is [ N1+1, N2 ], and the third preset electric quantity range is [ N2+1, M ], where M is a maximum value of the battery electric quantity of the terminal device. The first preset electric quantity range is provided with a first preset electric quantity index acquisition mode, the second preset electric quantity range is provided with a second preset electric quantity index acquisition mode, and the third preset electric quantity range is provided with a third preset electric quantity index acquisition mode. Generally, the lower the power, the greater the possibility of shutdown, the larger the power index should be, the higher the power, which means that the possibility of shutdown has not been encountered, and the smaller the power index.
Further, in the embodiment of the present invention, the first preset power index obtaining manner adopts a calculation formula of the first power index: the electricity index B ═ (N1+1-B1) × Q1+ a, where a is a constant; the second preset electric quantity index obtaining mode adopts a calculation formula of a second electric quantity index: electricity index B ═ (N2+1-B1) × Q2; the third preset electric quantity index obtaining mode adopts a calculation formula of a third electric quantity index: and the electricity quantity index B is 0. Wherein, B1 is the current remaining capacity of the terminal device, and Q1 and Q2 are weights. It should be noted that the lower the charge, the more the exponential weight of the charge is increased, i.e. in the embodiment of the present invention, Q1 is greater than Q2.
For example, the power of the terminal device is 100 power values in a saturation state, wherein the normal power is 60-100 power values, and the power index B is 0; when the current remaining electric quantity B1 is in 11-59 electric quantity values, the electric quantity index B ═ (60-B1) × Q1, Q1 may preferentially take a value of 1, max (B) ═ 49, min (B) ═ 1; when the current remaining power is less than 11 power values, the power index B is (11-B1) × Q2+ a, where Q2 may preferably take a value of 5 and a takes a value of 49, then max (B) is 99 and min (B) is 54.
204. And the terminal equipment obtains a target electric quantity index based on the preset electric quantity index obtaining mode and the current residual electric quantity. Wherein, step 204 is completed and the process goes to step 208.
If the preset electric quantity index obtaining mode adopts the calculation formula of the first electric quantity index, substituting the current residual electric quantity B1 into the formula to obtain a target electric quantity index; if the preset electric quantity index obtaining mode adopts the calculation formula of the second electric quantity index, substituting the current residual electric quantity B1 into the formula to obtain a target electric quantity index; if the preset electric quantity index obtaining mode adopts the calculation formula of the third electric quantity index, the calculated target electric quantity index B is equal to 0.
For example, if the current remaining power B1 is 42, the power index is calculated as: and B is (60-B1) Q1, wherein Q1 is 1, and the calculated target electric quantity index B is 18. If the current remaining power B1 is equal to 7, the power index is calculated as: and B is (11-B1) × Q2+49, wherein Q2 takes a value of 5, and the calculated target electric quantity index B is 69.
205. The terminal device identifies a target preset temperature range to which the current internal temperature belongs from a plurality of preset temperature ranges.
206. And the terminal equipment acquires a preset temperature index acquisition mode corresponding to the target preset temperature range.
The method comprises the steps of dividing the temperature of the terminal equipment into a plurality of preset temperature ranges in advance, and setting different preset temperature index acquisition modes aiming at different preset temperature ranges.
As an optional implementation manner, in the embodiment of the present invention, according to a temperature range that may exist in the terminal device, three preset temperature ranges are set, which are a first preset temperature range, a second preset temperature range, and a third preset temperature range, respectively, where the first preset temperature range is less than or equal to H1, the second preset temperature range is [ H1+1, H2 ], and the third preset temperature range is greater than or equal to (H2+1), where the first preset temperature range sets the first preset temperature index obtaining manner, the second preset temperature range sets the second preset temperature index obtaining manner, and the third preset temperature range sets the third preset temperature index obtaining manner.
Further, in the embodiment of the present invention, the first preset temperature index obtaining manner adopts a calculation formula of the first temperature index: the temperature index C is 0, and in this time, the temperature of the terminal equipment is low, so that the terminal equipment cannot be influenced and can be ignored; the second preset temperature index obtaining mode adopts a calculation formula of a second temperature index: temperature index C ═ (C1-H1) P1; the third preset temperature index obtaining mode adopts a calculation formula of a third temperature index: temperature index C ═ (C1-H2) P2+ b. Wherein C1 is the current internal temperature of the terminal device, P1 and P2 are weights, b is a constant, and the value of b is usually 50. It should be noted that the higher the temperature, the more the temperature index weight is, i.e. in the embodiment of the present invention, P2 is greater than P1.
For example, the normal temperature of the terminal equipment is 0 ℃ to 30 ℃, and when the temperature is less than or equal to 30 ℃, the temperature index C is 0; when the current internal temperature C1 is between 31 ℃ and 40 ℃, the temperature index C ═ (C1-30) × P1, P1 may preferentially take the value 2, max (C) ═ 50, min (C) ═ 2; when the current internal temperature C1 is greater than or equal to H2, the temperature index C ═ C1-40 × P2+ b, where P2 may preferably take a value of 5 and b a value of 50, max (C) may be infinite, and min (C) is 55. The unit in the above equation for calculating the temperature index is ° c.
207. The terminal device obtains the target temperature index based on the preset temperature index obtaining mode and the current internal temperature. Wherein, the step 207 is executed, and the process goes to the step 208.
Wherein, the step 202-204 and the step 205-207 can be executed simultaneously; or, the step 202-; or step 205-.
If the preset temperature index obtaining mode adopts the calculation formula of the first temperature index, substituting the current internal temperature C1 into the formula to obtain a target temperature index which is 0; if the preset temperature index obtaining mode adopts the calculation formula of the second temperature index, substituting the current internal C1 into the formula to obtain a target temperature index; and if the preset temperature index obtaining mode adopts the calculation formula of the third temperature index, obtaining the target temperature index.
For example, if the current internal temperature C1 is 35 ℃, the temperature index is calculated as: and C is (C1-30) P1, wherein P1 is 2, and the calculated target temperature index C is 10. If the current internal temperature C1 is 48, the temperature index is calculated as: and C is (C1-40) P2+50, wherein P2 is 5, and the calculated target temperature index C is 90.
208. And the terminal equipment acquires the current application cleaning index by taking the target electric quantity index and the target temperature index as the basis.
In the embodiment of the present invention, a calculation method of a current application cleaning index is provided, as follows:
f ═ B + C, where F is used to indicate the current application cleaning index.
209. And the terminal equipment judges whether the current application cleaning index is not less than a preset cleaning index. Wherein, when the current application cleaning index is not less than (greater than or equal to) the preset cleaning index, the process goes to step 210; and ending the process when the current application cleaning index is smaller than the preset cleaning index.
In the embodiment of the present invention, the preset cleaning index is a comprehensive trigger value for triggering closing of the background application, in the embodiment of the present invention, the preset cleaning index is set to a, and when F is greater than or equal to a, step 210 is executed, which indicates that the terminal device is in a low power and high heat state.
210. And the terminal equipment closes all background application programs.
The embodiment can manage the background application program by combining the current residual capacity and the current internal temperature, prolong the standby time of the terminal equipment by closing the background application program and prolong the service life of the battery; meanwhile, the background application program is closed, so that abnormal heating of the terminal equipment caused by running of an excessive number of application programs of the terminal equipment is prevented, the use safety of the terminal equipment is improved, the service life of the battery is further prolonged, and the service life of the terminal equipment is further prolonged.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention; as shown in fig. 3, a terminal device may include:
a parameter detecting unit 310, configured to detect a current remaining power and a current internal temperature of the terminal device;
an index obtaining unit 320, configured to obtain a target power index according to the current remaining power and obtain a target temperature index according to the current internal temperature;
the index obtaining unit 320 is further configured to obtain a current application cleaning index of the terminal device according to the target power index and the target temperature index;
a determining unit 330, configured to determine whether the current application cleaning index is not less than a preset cleaning index;
a closing unit 340, configured to close all background applications of the terminal device when the current application cleaning index is not less than the preset cleaning index.
By implementing the above embodiment, the parameter detecting unit 310 detects the current remaining power and the current internal temperature, the index obtaining unit 320 obtains a target power index according to the current remaining power and obtains a target temperature index according to the current internal temperature, then the index obtaining unit 320 further obtains the current application cleaning index of the terminal device according to the target power index and the target temperature index, and then the closing unit 340 closes all background applications of the terminal device when the determining unit 330 determines that the current application cleaning index is not less than (greater than or equal to) the preset cleaning index. Therefore, by implementing the embodiment of the invention, the background application program can be managed by combining the residual power and the internal temperature, the standby time of the terminal equipment is prolonged by closing the background application program, and the service life of the battery is prolonged; meanwhile, the background application program is closed, so that abnormal heating of the terminal equipment caused by running of an excessive number of application programs of the terminal equipment is prevented, the use safety of the terminal equipment is improved, the service life of the battery is further prolonged, and the service life of the terminal equipment is further prolonged.
It will be appreciated that the terminal device shown in fig. 3 may be used to perform the method for managing background applications shown in steps 101-105.
As an optional implementation manner, the manner for acquiring the target power index by using the current remaining power as a basis by the index acquisition unit 320 is specifically:
the index obtaining unit 320 is specifically configured to identify a target preset electric energy range to which the current remaining electric energy belongs from a plurality of preset electric energy ranges; acquiring a preset electric quantity index acquisition mode corresponding to the target preset electric quantity range; and obtaining a target electric quantity index based on a preset electric quantity index obtaining mode and the current residual electric quantity.
As an optional implementation manner, the manner for acquiring the target temperature index by using the current internal temperature as a basis by the index acquisition unit 320 is specifically:
the index obtaining unit 320 is specifically configured to identify a target preset temperature range to which the current internal temperature belongs from a plurality of preset temperature ranges; acquiring a preset temperature index acquisition mode corresponding to a target preset temperature range; and obtaining a target temperature index based on the preset temperature index obtaining mode and the current internal temperature.
It will be appreciated that the terminal device shown in fig. 3 may also be used to perform the method for managing background applications shown in steps 201-210.
Referring to fig. 3, in some implementable manners shown in fig. 4, the terminal device further includes:
an external temperature detection unit 410, configured to start a temperature detection device external to the terminal device before the parameter detection unit 310 detects the current remaining power and the current internal temperature of the terminal device, and detect the external real-time temperature of the terminal device; judging whether the external real-time temperature is greater than a preset temperature threshold value or not;
the parameter detecting unit 310 is specifically configured to detect the current remaining power and the current internal temperature of the terminal device when the external real-time temperature detected by the external temperature detecting unit 410 is greater than a preset temperature threshold.
Referring to fig. 3, in some implementable manners shown in fig. 5, the terminal device further includes:
a counting unit 510, configured to count a first number corresponding to all background applications of the terminal device before the parameter detecting unit 310 detects the current remaining power and the current internal temperature of the terminal device; counting second quantity corresponding to all foreground application programs of the terminal equipment; and counting the total number of the first number and the second number; judging whether the total number exceeds a preset opening threshold value;
the parameter detecting unit 310 is specifically configured to detect the current remaining power and the current internal temperature of the terminal device when the total number counted by the counting unit 510 exceeds the preset starting threshold.
Example four
Referring to fig. 6, fig. 6 is another schematic structural diagram of a terminal device according to an embodiment of the present invention; the terminal device shown in fig. 6 may include: at least one processor 610, such as a CPU, memory 620, at least one communication bus 630, input devices 640, output devices 650. Wherein a communication bus 630 is used to enable communication connections between these components. The memory 620 may be a high-speed RAM memory or a non-volatile memory (e.g., at least one disk memory). The memory 620 may optionally be at least one memory device located remotely from the processor 610. The processor 610 may be combined with the terminal device described in fig. 3 to fig. 5, a set of program codes is stored in the memory 620, and the processor 610 calls the program codes stored in the memory 620 to perform the following operations:
detecting the current residual capacity and the current internal temperature of the terminal equipment;
acquiring a target electric quantity index by taking the current residual electric quantity as a basis, and acquiring a target temperature index by taking the current internal temperature as a basis;
acquiring a current application cleaning index of the terminal equipment by taking the target electric quantity index and the target temperature index as a basis;
judging whether the current application cleaning index is not less than a preset cleaning index or not;
and when the current application cleaning index is not less than the preset cleaning index, closing all background application programs of the terminal equipment.
In some optional embodiments, the processor 610 may be configured to perform the following steps:
identifying a target preset electric quantity range to which the current residual electric quantity belongs from a plurality of preset electric quantity ranges;
acquiring a preset electric quantity index acquisition mode corresponding to the target preset electric quantity range;
and obtaining the target electric quantity index based on the preset electric quantity index obtaining mode and the current residual electric quantity.
In some optional embodiments, the processor 610 may be configured to perform the following steps:
identifying a target preset temperature range to which the current internal temperature belongs from a plurality of preset temperature ranges;
acquiring a preset temperature index acquisition mode corresponding to the target preset temperature range;
and obtaining the target temperature index based on the preset temperature index obtaining mode and the current internal temperature.
In some optional embodiments, the processor 610 may be configured to perform the following steps:
starting a temperature detection device externally arranged on the terminal equipment, and detecting the external real-time temperature of the terminal equipment;
judging whether the external real-time temperature is greater than a preset temperature threshold value or not;
and when the external real-time temperature is greater than the preset temperature threshold, executing the step of detecting the current residual capacity and the current internal temperature of the terminal equipment.
In some optional embodiments, the processor 610 may be configured to perform the following steps:
counting a first quantity corresponding to all background application programs of the terminal equipment; and
counting a second number corresponding to all foreground application programs of the terminal equipment;
counting the total number of the first number and the second number;
judging whether the total number exceeds a preset opening threshold value;
and when the total quantity exceeds the preset starting threshold value, executing the step of detecting the current residual capacity and the current internal temperature of the terminal equipment.
By implementing the terminal equipment, the background application program can be managed by combining the residual electric quantity and the internal temperature, the standby time of the terminal equipment is prolonged by closing the background application program, and the service life of a battery is prolonged; meanwhile, the background application program is closed, so that abnormal heating of the terminal equipment caused by running of an excessive number of application programs of the terminal equipment is prevented, the use safety of the terminal equipment is improved, the service life of the battery is further prolonged, and the service life of the terminal equipment is further prolonged.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read-Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The method for managing background applications and the terminal device disclosed in the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for managing background applications, comprising:
detecting the current residual capacity and the current internal temperature of the terminal equipment;
acquiring a target electric quantity index by taking the current residual electric quantity as a basis, and acquiring a target temperature index by taking the current internal temperature as a basis;
acquiring a current application cleaning index of the terminal equipment by taking the target electric quantity index and the target temperature index as a basis;
judging whether the current application cleaning index is not less than a preset cleaning index or not;
when the current application cleaning index is not less than the preset cleaning index, closing all background application programs of the terminal equipment;
the closing of all background applications of the terminal device includes:
detecting whether the terminal equipment is in a bright screen state currently, if so, starting a camera of the terminal equipment to shoot an external image, extracting a face image from the external image, analyzing the age of a user according to the face image when the face image is extracted, sending a reminding message to a mobile terminal bound with the terminal equipment when the age of the user is in a preset age range, and closing all background application programs;
the obtaining of the target power index based on the current remaining power includes:
identifying a target preset electric quantity range to which the current residual electric quantity belongs from a plurality of preset electric quantity ranges;
acquiring a preset electric quantity index acquisition mode corresponding to the target preset electric quantity range;
acquiring the target electric quantity index based on the preset electric quantity index acquisition mode and the current residual electric quantity;
the obtaining of the target temperature index based on the current internal temperature includes:
identifying a target preset temperature range to which the current internal temperature belongs from a plurality of preset temperature ranges;
acquiring a preset temperature index acquisition mode corresponding to the target preset temperature range;
obtaining the target temperature index based on the preset temperature index obtaining mode and the current internal temperature;
the obtaining of the current application cleaning index of the terminal device based on the target electric quantity index and the target temperature index includes:
calculating the sum of the target electric quantity index and the target temperature index to obtain a current application cleaning index of the terminal equipment;
the plurality of preset electric quantity ranges include: the first preset electric quantity range: n1 and 0 or more, second preset electric quantity range: less than or equal to N2 and more than or equal to N1+1, a third preset electric quantity range: less than or equal to M and more than or equal to N2+1, wherein M is the maximum value of the battery capacity of the terminal equipment, N1 and N2 are preset capacity values, N1 is a value greater than 0, N1+1 is a capacity value greater than N1 by 1, N2+1 is a capacity value greater than N2 by 1, M is greater than N2+1, N2 is greater than N1+1, and the preset capacity index acquisition mode corresponding to the first preset capacity range adopts a calculation formula of a first capacity index: the electric quantity index B = (N1+1-B1) × Q1+ a, and the preset electric quantity index acquisition mode corresponding to the second preset electric quantity range adopts a calculation formula of a second electric quantity index: the electric quantity index B = (N2+1-B1) × Q2, and the preset electric quantity index acquisition mode corresponding to the third preset electric quantity range adopts a calculation formula of a third electric quantity index: the power index B =0, B1 is the current remaining power, Q1 and Q2 are weights, Q1 is greater than Q2, and a is a constant;
the plurality of preset temperature ranges includes: the first preset temperature range is less than or equal to H1, the second preset temperature range is greater than or equal to H1+1 and less than or equal to H2, the third preset temperature range is greater than or equal to H2+1, H1 and H2 are preset temperature values, H1+1 is a temperature value 1 greater than H1, H2 is greater than H1+1, H2+1 is a temperature value 1 greater than H2, and the preset temperature index acquisition mode corresponding to the first preset temperature range adopts a calculation formula of a first temperature index: the temperature index C =0, and the preset temperature index obtaining mode corresponding to the second preset temperature range adopts a calculation formula of the second temperature index: the temperature index C = (C1-H1) × P1, and the preset temperature index obtaining manner corresponding to the third preset temperature range adopts a calculation formula of the third temperature index: temperature index C = (C1-H2) × P2+ b, C1 is the current internal temperature of the terminal device, P1 and P2 are weights, P2 is greater than P1, b is a constant.
2. The method of claim 1, wherein before detecting the current remaining power and the current internal temperature of the terminal device, the method further comprises:
starting a temperature detection device externally arranged on the terminal equipment, and detecting the external real-time temperature of the terminal equipment;
judging whether the external real-time temperature is greater than a preset temperature threshold value or not;
and when the external real-time temperature is greater than the preset temperature threshold, executing the step of detecting the current residual capacity and the current internal temperature of the terminal equipment.
3. The method according to any one of claims 1-2, wherein before detecting the current remaining power and the current internal temperature of the terminal device, the method further comprises:
counting a first quantity corresponding to all background application programs of the terminal equipment; and
counting a second number corresponding to all foreground application programs of the terminal equipment;
counting the total number of the first number and the second number;
judging whether the total number exceeds a preset opening threshold value;
and when the total quantity exceeds the preset starting threshold value, executing the step of detecting the current residual capacity and the current internal temperature of the terminal equipment.
4. A terminal device, comprising:
the parameter detection unit is used for detecting the current residual capacity and the current internal temperature of the terminal equipment;
an index obtaining unit, configured to obtain a target power index based on the current remaining power, and obtain a target temperature index based on the current internal temperature;
the index obtaining unit is further used for obtaining a current application cleaning index of the terminal equipment according to the target electric quantity index and the target temperature index;
the judging unit is used for judging whether the current application cleaning index is not less than a preset cleaning index or not;
a closing unit, configured to close all background applications of the terminal device when the current application cleaning index is not less than the preset cleaning index;
the mode that the closing unit is used for closing all background application programs of the terminal device is specifically as follows:
detecting whether the terminal equipment is in a bright screen state currently, if so, starting a camera of the terminal equipment to shoot an external image, extracting a face image from the external image, analyzing the age of a user according to the face image when the face image is extracted, sending a reminding message to a mobile terminal bound with the terminal equipment when the age of the user is in a preset age range, and closing all background application programs;
the index obtaining unit is specifically configured to obtain a target power index based on the current remaining power by:
identifying a target preset electric quantity range to which the current residual electric quantity belongs from a plurality of preset electric quantity ranges; acquiring a preset electric quantity index acquisition mode corresponding to the target preset electric quantity range; acquiring the target electric quantity index based on the preset electric quantity index acquisition mode and the current residual electric quantity;
the index obtaining unit is specifically configured to obtain a target temperature index based on the current internal temperature by:
identifying a target preset temperature range to which the current internal temperature belongs from a plurality of preset temperature ranges; acquiring a preset temperature index acquisition mode corresponding to the target preset temperature range; obtaining the target temperature index based on the preset temperature index obtaining mode and the current internal temperature;
the index obtaining unit obtains the current application cleaning index of the terminal device according to the target electric quantity index and the target temperature index by the following specific steps:
calculating the sum of the target electric quantity index and the target temperature index to obtain a current application cleaning index of the terminal equipment;
the plurality of preset electric quantity ranges include: the first preset electric quantity range: n1 and 0 or more, second preset electric quantity range: less than or equal to N2 and more than or equal to N1+1, a third preset electric quantity range: less than or equal to M and more than or equal to N2+1, wherein M is the maximum value of the battery capacity of the terminal equipment, N1 and N2 are preset capacity values, N1 is a value greater than 0, N1+1 is a capacity value greater than N1 by 1, N2+1 is a capacity value greater than N2 by 1, M is greater than N2+1, N2 is greater than N1+1, and the preset capacity index acquisition mode corresponding to the first preset capacity range adopts a calculation formula of a first capacity index: the electric quantity index B = (N1+1-B1) × Q1+ a, and the preset electric quantity index acquisition mode corresponding to the second preset electric quantity range adopts a calculation formula of a second electric quantity index: the electric quantity index B = (N2+1-B1) × Q2, and the preset electric quantity index acquisition mode corresponding to the third preset electric quantity range adopts a calculation formula of a third electric quantity index: the power index B =0, B1 is the current remaining power, Q1 and Q2 are weights, Q1 is greater than Q2, and a is a constant;
the plurality of preset temperature ranges includes: the first preset temperature range is less than or equal to H1, the second preset temperature range is greater than or equal to H1+1 and less than or equal to H2, the third preset temperature range is greater than or equal to H2+1, H1 and H2 are preset temperature values, H1+1 is a temperature value 1 greater than H1, H2 is greater than H1+1, H2+1 is a temperature value 1 greater than H2, and the preset temperature index acquisition mode corresponding to the first preset temperature range adopts a calculation formula of a first temperature index: the temperature index C =0, and the preset temperature index obtaining mode corresponding to the second preset temperature range adopts a calculation formula of the second temperature index: the temperature index C = (C1-H1) × P1, and the preset temperature index obtaining manner corresponding to the third preset temperature range adopts a calculation formula of the third temperature index: temperature index C = (C1-H2) × P2+ b, C1 is the current internal temperature of the terminal device, P1 and P2 are weights, P2 is greater than P1, b is a constant.
5. The terminal device according to claim 4, wherein the terminal device further comprises:
the external temperature detection unit is used for starting a temperature detection device externally arranged on the terminal equipment to detect the external real-time temperature of the terminal equipment before the parameter detection unit detects the current residual electric quantity and the current internal temperature of the terminal equipment; judging whether the external real-time temperature is greater than a preset temperature threshold value or not;
the parameter detection unit is specifically configured to execute the detection of the current remaining power and the current internal temperature of the terminal device when the external real-time temperature detected by the external temperature detection unit is greater than the preset temperature threshold.
6. The terminal device according to any of claims 4-5, wherein the terminal device further comprises:
the statistical unit is used for counting the first quantity corresponding to all background application programs of the terminal equipment before the parameter detection unit detects the current residual electric quantity and the current internal temperature of the terminal equipment; counting a second number corresponding to all foreground application programs of the terminal equipment; and counting the total number of the first number and the second number; judging whether the total number exceeds a preset opening threshold value;
the parameter detection unit is specifically configured to perform the detection of the current remaining power and the current internal temperature of the terminal device when the total number counted by the counting unit exceeds the preset starting threshold.
7. A terminal device, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to perform the method for managing background applications according to any one of claims 1 to 3.
8. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method for managing background applications according to any one of claims 1 to 3.
CN201710748419.9A 2017-08-28 2017-08-28 Method for managing background application program and terminal equipment Active CN107632882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710748419.9A CN107632882B (en) 2017-08-28 2017-08-28 Method for managing background application program and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710748419.9A CN107632882B (en) 2017-08-28 2017-08-28 Method for managing background application program and terminal equipment

Publications (2)

Publication Number Publication Date
CN107632882A CN107632882A (en) 2018-01-26
CN107632882B true CN107632882B (en) 2020-09-04

Family

ID=61100544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710748419.9A Active CN107632882B (en) 2017-08-28 2017-08-28 Method for managing background application program and terminal equipment

Country Status (1)

Country Link
CN (1) CN107632882B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3057028A1 (en) * 2015-02-16 2016-08-17 Samsung Electronics Co., Ltd. Electronic device for installing application and method of controlling same
CN106095063A (en) * 2016-06-15 2016-11-09 乐视控股(北京)有限公司 The power consumption management method of mobile terminal and power consumption management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3057028A1 (en) * 2015-02-16 2016-08-17 Samsung Electronics Co., Ltd. Electronic device for installing application and method of controlling same
CN106095063A (en) * 2016-06-15 2016-11-09 乐视控股(北京)有限公司 The power consumption management method of mobile terminal and power consumption management system

Also Published As

Publication number Publication date
CN107632882A (en) 2018-01-26

Similar Documents

Publication Publication Date Title
CN107395877B (en) Terminal false touch prevention method and terminal
CN106293803B (en) A kind of application control method and device
CN107390997B (en) Application program switching method and device
CN106022101B (en) application management method and terminal
CN105446858B (en) The replacement reminding method and device of battery
CN111081257A (en) Voice acquisition method, device, equipment and storage medium
CN107995099A (en) Friend recommendation method and device
CN109191635A (en) Objective method, apparatus and storage medium are sentenced based on face recognition technology
CN107704298A (en) Terminal and its interface switching method, storage device based on fingerprint recognition
CN106326065B (en) Terminal use duration management method and device
CN106933822A (en) A kind of content recommendation method and device
CN106507192A (en) A kind of television shutdown control method and system based on eye recognition
CN107632882B (en) Method for managing background application program and terminal equipment
CN110806908A (en) Application software pre-starting method, terminal and computer readable storage medium
CN110308780B (en) Battery management method, system, terminal device and storage medium
CN107040955B (en) Power consumption state identification method, device and the electronic equipment of terminal
CN108595238B (en) Display control method and device of application interface
CN111093059A (en) Monitoring method and related equipment
CN104767880A (en) Communication number management method
CN113487711B (en) Blink control method and device for avatar, electronic equipment and storage medium
CN114298088A (en) Load identification method and device, computer equipment and storage medium
CN115219930A (en) Vehicle storage battery aging early warning method and device, electronic equipment and storage medium
CN107864275B (en) Application setting method and device, mobile terminal and computer readable storage medium
CN105468480B (en) Startup management method and device
CN108491285B (en) Data protection method applied to electronic equipment test and related product

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