CN107734618B - Application program closing method and device, storage medium and electronic equipment - Google Patents

Application program closing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107734618B
CN107734618B CN201711050148.6A CN201711050148A CN107734618B CN 107734618 B CN107734618 B CN 107734618B CN 201711050148 A CN201711050148 A CN 201711050148A CN 107734618 B CN107734618 B CN 107734618B
Authority
CN
China
Prior art keywords
application program
terminal
application
temperature
determining
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
CN201711050148.6A
Other languages
Chinese (zh)
Other versions
CN107734618A (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 Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711050148.6A priority Critical patent/CN107734618B/en
Publication of CN107734618A publication Critical patent/CN107734618A/en
Application granted granted Critical
Publication of CN107734618B publication Critical patent/CN107734618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses an application program closing method, an application program closing device, a storage medium and electronic equipment; the method comprises the following steps: respectively obtaining the calorific value generated by the terminal when each application program in the terminal runs so as to establish the corresponding relation between each application program and the calorific value, obtaining the current running application program set of the terminal when the residual electric quantity of the terminal is less than the preset electric quantity, determining a target application program according to the application program set and the corresponding relation, and finally closing the target application program. This application can the calorific capacity of application in the detection terminal to close the high application of calorific capacity when the residual electric quantity is less, thereby effectively reduced electronic equipment's power consumption when making the cell-phone cooling, promote electronic equipment's duration.

Description

Application program closing method and device, storage medium and electronic equipment
Technical Field
The application relates to the field of electronic equipment, in particular to an application program closing method, an application program closing device, a storage medium and electronic equipment.
Background
With the development of terminal technology, terminals have begun to change from simply providing telephony devices to a platform for running general-purpose software. The platform no longer aims at providing call management, but provides an operating environment including various application software such as call management, game and entertainment, office events, mobile payment and the like, and with a great deal of popularization, the platform has been deeply developed to the aspects of life and work of people.
With the continuous development of smart phones, in order to meet the daily work and life requirements of people, more and more applications appear in smart phones, and each application consumes Central Processing Unit (CPU) resources in the smart phone in the running process. When the CPU resources of the mobile phone are largely occupied, not only the operating efficiency of each application is affected, but also the CPU temperature of the mobile phone is increased. Applications that occupy a high CPU resource rate often consume a large amount of power, and therefore, these applications not only generate a large amount of heat, but also consume a large amount of power.
Disclosure of Invention
The embodiment of the application program closing method and device, the storage medium and the electronic equipment can reduce the power consumption of the electronic equipment.
In a first aspect, an embodiment of the present application provides an application closing method, including:
respectively acquiring calorific value generated by a terminal when each application program in the terminal runs so as to establish a corresponding relation between each application program and the calorific value;
when the residual electric quantity of the terminal is smaller than the preset electric quantity, acquiring an application program set currently operated by the terminal;
determining a target application program according to the application program set and the corresponding relation;
and closing the target application program.
In a second aspect, an embodiment of the present application further provides an application closing apparatus, including: the system comprises a heating value acquisition module, a set acquisition module, a determination module and a closing module;
the heating value obtaining module is used for respectively obtaining the heating value generated by the terminal when each application program in the terminal runs so as to establish the corresponding relation between each application program and the heating value;
the set acquisition module is used for acquiring an application program set currently operated by the terminal when the residual electric quantity of the terminal is less than a preset electric quantity;
the determining module is used for determining a target application program according to the application program set and the corresponding relation;
the closing module is used for closing the target application program.
In a third aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the application program shutdown method described above.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the application shutdown method when executing the program.
The application program closing method provided by the embodiment of the application program closing method includes the steps of firstly respectively obtaining heating values generated by a terminal when each application program in the terminal runs so as to establish a corresponding relation between each application program and the heating values, obtaining an application program set currently running by the terminal when the residual electric quantity of the terminal is smaller than a preset electric quantity, determining a target application program according to the application program set and the corresponding relation, and finally closing the target application program. This application can the calorific capacity of application in the detection terminal to close the high application of calorific capacity when the residual electric quantity is less, thereby effectively reduced electronic equipment's power consumption when making the cell-phone cooling, promote electronic equipment's duration.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an application closing method according to an embodiment of the present application.
Fig. 2 is a schematic view of an application scenario of the application closing method according to the embodiment of the present application.
Fig. 3 is another schematic flowchart of an application closing method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an application shutdown device according to an embodiment of the present disclosure.
Fig. 5 is another schematic structural diagram of an application shutdown device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The principles of the present application may be employed in numerous other general-purpose or special-purpose computing, communication environments or configurations. Examples of well known computing systems, environments, and configurations that may be suitable for use with the application include, but are not limited to, hand-held telephones, personal computers, servers, multiprocessor systems, microcomputer-based systems, mainframe-based computers, and distributed computing environments that include any of the above systems or devices.
The details will be described below separately.
The embodiment will be described in terms of an application closing apparatus, which may be specifically integrated in an electronic device, where the electronic device may be an electronic device with a network communication function, such as a mobile interconnection network device (e.g., a smart phone, a tablet computer).
Referring to fig. 1, fig. 1 is a schematic flowchart of an application closing method according to an embodiment of the present application, including the following steps:
step S101, respectively obtaining the calorific value generated by the terminal when each application program in the terminal runs, so as to establish the corresponding relation between each application program and the calorific value.
In the using process of the terminal, the heat effects of different degrees can occur in each hardware circuit, the hardware circuit is called through an application program running in the terminal, when the generated heat productivity is not large, the normal running performance and the user experience can not be influenced, but when the temperature of some hardware circuits is too high, the performance can be influenced, the power consumption of the terminal is seriously influenced, and the part of hardware circuits or the application program using the hardware circuits can be regarded as a main heat source of the current mobile terminal.
In an embodiment, the calculation may be performed by calculating a difference between the standby temperature of the terminal and the temperature of the terminal when only the application is running, for each application installed in the terminal. The terminal is provided with a plurality of functional circuits, one functional circuit may be composed of one or more hardware circuits, and in the operation process of the terminal, each hardware circuit generates heat effects with different degrees to generate heat, each hardware circuit is used as a different heat source of the terminal, the position of the hardware circuit is different from the bearing function, the influence of the heat effect is different, so the real-time temperature is different, and the corresponding sensitive temperature is also different. The temperature of the acquisition terminal can be acquired through the thermal sensors, specifically, the thermal sensors can be distributed at different positions of the terminal to acquire real-time temperatures of a plurality of positions of the terminal, and then an average value of the real-time temperatures is calculated or the terminal temperature is calculated according to a weight ratio.
For example, as shown in fig. 2, components with higher heat productivity in the terminal 100 are often a central processing unit CPU102, a graphics processing unit GPU102, a camera 101, and the like, and when an application with a higher memory occupancy value runs in the terminal, the CPU temperature may be higher; when an application program with higher image quality or higher special effect runs in the terminal, the GPU load is higher, so that the temperature of the GPU is increased; the temperature of the camera may rise when the terminal runs the photographing application, and so on. Therefore, the temperature can be acquired by arranging the thermal sensors at the camera, the CPU and the GPU respectively in real time, so that the temperature of the terminal can be calculated according to a plurality of temperatures.
In an embodiment, the first temperature of the terminal is obtained when the terminal is in a standby state, and the second temperature of the terminal is obtained when only a certain application program is running, wherein the standby state refers to a state in which the electronic device is powered on but does not perform any substantial work (and does not perform various operations on files and programs), that is, does not run any application program. The calorific value of the application program can be obtained by calculating the interpolation between the first temperature and the second temperature. Therefore, a thermosensitive sensor can be arranged at a camera, a CPU, a GPU and the like respectively to acquire real-time temperature so as to calculate the terminal temperature. And establishing a corresponding relation between each application program and the heating value after calculating the heating value of each application program in the terminal.
It should be noted that the application in the embodiment of the present application is a third-party application, that is, third-party software, where the third-party software refers to software provided by a software company other than the manufacturer of the nonlinear editing system, and the system application may cause a functional loss of the terminal after being turned off, so that the application carried by the system is not within the scope of the application included in the present application.
And step S102, when the residual electric quantity of the terminal is less than the preset electric quantity, acquiring an application program set currently operated by the terminal.
In an embodiment, the step may specifically include:
acquiring the current residual electric quantity of the terminal;
judging whether the residual electric quantity is smaller than a preset electric quantity or not;
and if the current running time of the terminal is less than the preset running time, acquiring the current running application program set of the terminal.
Specifically, the initial power of the terminal is known in advance, and the terminal may obtain the remaining power of the terminal according to various ways by running a plurality of programs installed on the terminal or using hardware or the like to consume a certain amount of power, for example: in practical application, a fuel gauge is arranged inside the power supply and used for indicating the residual power of the power supply and the time that the power supply can continuously supply power under specific working conditions, wherein the fuel gauge mainly uses a voltage testing method, a battery modeling method, a coulometer and the like, and the detection method is not specifically limited.
In an embodiment, the remaining power of the terminal power supply can be detected in real time, or the remaining power of the terminal power supply can be detected at regular time, or the remaining power can be adjusted by the user according to actual needs, for example, the remaining power of the mobile phone power supply is detected every hour within 9:00 to 20:00, and the remaining power of the mobile phone power supply is detected in real time within 20:00 to 9:00 of the next day; or detecting the residual capacity of the power supply of the mobile phone at the timing of 22: 00. Preferably, the timing of detecting the remaining capacity of the power supply of the terminal may be selected to save power consumption, for example, the remaining capacity of the power supply of the terminal may be detected every hour.
In the embodiment of the present invention, after the remaining power of the terminal is obtained, whether the application needs to be closed is determined by judging whether the remaining power of the terminal is smaller than a preset power, where the preset power is preset by the terminal according to an actual situation or is user-defined, and this is not specifically limited here. If the residual electric quantity of the terminal is less than the preset electric quantity, acquiring an application program set currently operated by the terminal, and if the residual electric quantity of the terminal is not less than the preset electric quantity, determining that the terminal does not need to close the application program, and directly ending the process.
The application program currently running by the terminal can be acquired through the application identifier, wherein the application identifier refers to the unique identifier of the application installed in the terminal, and therefore the application of the terminal can be identified through the application identifier. In particular, in some possible embodiments of the present invention, the opened application identifier may be recorded when the terminal opens the application.
And step S103, determining a target application program according to the application program set and the corresponding relation.
In an embodiment, the applications in the correspondence relationship may be sorted according to the heating value, where the heating value is also a temperature change amount or a heat change amount, and therefore, the unit of the heating value may be joule or celsius, and may also be converted into joule or the like by the change amount of celsius. For example, the temperature variation of the application program a is 5 ℃, the temperature variation of the application program B is 3 ℃, and the temperature variation of the application program C is 10 ℃, and the application programs may be sorted from large to small according to the magnitude of the temperature variation, that is, the application program C, the application program a, and the application program B.
Further, the application programs in the application program set are sorted according to the corresponding relation and the sorting sequence, and the application programs with the higher sorting rate in the preset number are determined as target application programs.
Of course, in some embodiments, the application programs in the application program set may also be directly sorted according to the calorific value in the correspondence to obtain a sorting result, and then the application program seat target application programs with the preset number and higher sorting are selected from the sorting result.
And step S104, closing the target application program.
In an embodiment, some more important applications may also be preset as the preset applications, and then before closing the target application, it is determined whether the target application is the preset application, and if not, the step of closing the target application is continuously executed. Therefore, the closing of the application program which is important for the user can be avoided, and information data is missed. The preset application program may be added by the user or automatically set by the system, which is not further limited in this application.
In actual use, there may be a case that the user is using the target application, and closing the target application may affect the user's use, so before closing the application, a prompt message may be generated and displayed in the terminal screen, for example, "close XX application" or not, if the user clicks "yes", then continue to close, and if the user clicks "no", then stop closing the application.
As can be seen from the above, in the embodiment of the application, the calorific value generated by the terminal when each application program in the terminal operates can be respectively obtained to establish a corresponding relationship between each application program and the calorific value, when the remaining power of the terminal is less than the preset power, the application program set currently operated by the terminal is obtained, the target application program is determined according to the application program set and the corresponding relationship, and finally the target application program is closed. This application can the calorific capacity of application in the detection terminal to close the high application of calorific capacity when the residual electric quantity is less, thereby effectively reduced electronic equipment's power consumption when making the cell-phone cooling, promote electronic equipment's duration.
The application shutdown method of the present application will be further explained below according to the description of the above embodiment.
Referring to fig. 3, fig. 3 is a schematic flowchart of another method for closing an application according to an embodiment of the present application, in which a network video downloading instruction may include a plurality of network videos, and the method includes the following steps:
step S201, respectively obtaining the calorific value generated by the terminal when each application program in the terminal runs, so as to establish a corresponding relationship between each application program and the calorific value.
The step of respectively obtaining the calorific value generated by the terminal when each application program runs in the terminal may specifically include:
the method comprises the steps of obtaining a first temperature of a terminal in a standby state, wherein the standby state is a state that the terminal does not run a third-party application program;
acquiring a second temperature of the terminal when an application program is operated;
the heating value of the application program is calculated according to the first temperature and the second temperature.
The step of obtaining the first temperature of the terminal in the standby state may specifically include: the method comprises the steps of collecting the temperature of each heating source at different positions of the terminal in a standby state, and calculating the first temperature of the terminal according to the temperature of each heating source.
The temperature of the acquisition terminal can be acquired through the thermal sensors, specifically, the thermal sensors can be distributed at different positions of the terminal to acquire real-time temperatures of a plurality of positions of the terminal, and then an average value of the real-time temperatures is calculated or the terminal temperature is calculated according to a weight ratio. For example, a thermal sensor may be provided at a camera, a CPU, a GPU, etc., respectively, to acquire a real-time temperature to calculate a terminal temperature. And establishing a corresponding relation between each application program and the heating value after calculating the heating value of each application program in the terminal.
Step S202, when the residual electric quantity of the terminal is smaller than the preset electric quantity, acquiring an application program set currently operated by the terminal.
In the embodiment of the present invention, after the remaining power of the terminal is obtained, whether the application needs to be closed is determined by judging whether the remaining power of the terminal is smaller than a preset power, where the preset power is preset by the terminal according to an actual situation or is user-defined, and this is not specifically limited here. If the residual electric quantity of the terminal is less than the preset electric quantity, acquiring an application program set currently operated by the terminal, and if the residual electric quantity of the terminal is not less than the preset electric quantity, determining that the terminal does not need to close the application program, and directly ending the process.
And step S203, sequencing the application programs in the application program set according to the heating values in the corresponding relation to obtain a sequencing result.
For example, the application program set includes an application program a, an application program B, and an application program C, and the heating value may also be a temperature change amount or a heat change amount, and therefore, the unit thereof may be joule or celsius, or may be converted into joule or the like by a change amount in celsius. For example, the temperature variation of the application a is 5 ℃, the temperature variation of the application B is 3 ℃, and the temperature variation of the application C is 10 ℃, and the applications may be sorted from large to small according to the magnitude of the temperature variation, that is, the application C, the application a, and the application B.
Step S204, determining a preset remaining power interval in which the remaining power is located.
In an embodiment, the remaining power of the power supply on the terminal can be directly used as the remaining power of the terminal, and in practical application, a power meter is arranged inside the power supply and used for indicating the remaining power of the power supply.
In step S205, the number of target applications corresponding to the preset remaining power interval is obtained.
In an embodiment, a plurality of preset remaining power intervals may also be preset, and each preset remaining power interval corresponds to one quantity information, for example, the quantity information corresponding to the remaining power interval of 1% to 10% is 3, the quantity information corresponding to the remaining power interval of 11% to 20% is 2, the quantity information corresponding to the remaining power interval of 21% to 30% is 1, and if the current remaining power is 18%, the quantity of the corresponding target application program is determined to be 2.
And step S206, determining the target application program according to the sequencing result and the quantity.
For example, if the number of the target applications is 2, two applications with the highest priority in the ranking result are selected as the target applications.
Step S207, the target application is closed.
In an embodiment, some more important applications may also be preset as the preset applications, and then before closing the target application, it is determined whether the target application is the preset application, and if not, the step of closing the target application is continuously executed. Therefore, the closing of the application program which is important for the user can be avoided, and information data is missed. The preset application program may be added by the user or automatically set by the system, which is not further limited in this application.
As can be seen from the above, in the embodiment of the application, the calorific value generated by the terminal when each application program in the terminal operates can be respectively obtained to establish a corresponding relationship between each application program and the calorific value, when the remaining power of the terminal is less than the preset power, the application program set currently operated by the terminal is obtained, the application programs in the application program set are sorted according to the calorific value in the corresponding relationship to obtain a sorting result, the preset remaining power interval in which the remaining power is located is determined, the number of target application programs corresponding to the preset remaining power interval is obtained, the target application programs are determined according to the sorting result and the number, and the target application programs are closed. This application can the calorific capacity of application in the detection terminal to close the high application of calorific capacity when the residual electric quantity is less, thereby effectively reduced electronic equipment's power consumption when making the cell-phone cooling, promote electronic equipment's duration.
In order to better implement the application program closing method provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the application program closing method. The terms are the same as those in the application closing method, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an application shutdown device according to an embodiment of the present application, where the application shutdown device 30 includes: a calorific value acquisition module 301, a set acquisition module 302, a determination module 303, and a shutdown module 304;
the calorific value obtaining module 301 is configured to obtain a calorific value generated by the terminal when each application program in the terminal runs, so as to establish a corresponding relationship between each application program and the calorific value;
the set obtaining module 302 is configured to obtain an application set currently running by the terminal when the remaining power of the terminal is less than a preset power;
the determining module 303 is configured to determine a target application according to the application set and the corresponding relationship;
the shutdown module 304 is configured to shutdown the target application.
With reference to fig. 5, in an embodiment, the calorific value obtaining module 301 specifically includes: a first obtaining submodule 3011, a second obtaining submodule 3012, and a calculating submodule 3013;
the first obtaining submodule 3011 is configured to obtain a first temperature of the terminal in a standby state, where the standby state is a state where the terminal does not run a third-party application;
the second obtaining sub-module 3012 is configured to obtain a second temperature of the terminal when the terminal runs an application;
the calculating submodule 3013 is configured to calculate a calorific value of the application program according to the first temperature and the second temperature.
The determining module 303 may specifically include: a sequencing submodule 3031, a first determining submodule 3032 and a second determining submodule 3033;
the sequencing submodule 3031 is configured to sequence the application programs in the application program set according to the calorific values in the correspondence to obtain a sequencing result;
the first determining submodule 3032 is configured to determine the number of the target application programs according to the remaining power;
the second determining submodule 3033 is configured to determine the target application according to the sorting result and the number.
As can be seen from the above, in the application program closing apparatus 30 provided in this embodiment of the application program, the calorific value obtaining module 301 may respectively obtain the calorific values generated by the terminal when each application program runs in the terminal, so as to establish a corresponding relationship between each application program and the calorific values, the set obtaining module 302 obtains the application program set currently running in the terminal when the remaining power of the terminal is less than the preset power, the determining module 303 determines the target application program according to the application program set and the corresponding relationship, and finally the closing module 304 closes the target application program. This application can the calorific capacity of application in the detection terminal to close the high application of calorific capacity when the residual electric quantity is less, thereby effectively reduced electronic equipment's power consumption when making the cell-phone cooling, promote electronic equipment's duration.
The application also provides a storage medium, on which a computer program is stored, wherein the computer program is executed by a processor to implement the application closing method provided by the method embodiment.
The application also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to implement the application program closing method provided by the method embodiment.
In another embodiment of the present application, an electronic device is also provided, and the electronic device may be a smart phone, a tablet computer, or the like. As shown in fig. 6, the electronic device 400 includes a processor 401, a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or loading an application program stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions:
respectively acquiring calorific value generated by a terminal when each application program in the terminal runs so as to establish a corresponding relation between each application program and the calorific value;
when the residual electric quantity of the terminal is smaller than the preset electric quantity, acquiring an application program set currently operated by the terminal;
determining a target application program according to the application program set and the corresponding relation;
and closing the target application program.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 500 may include Radio Frequency (RF) circuitry 501, memory 502 including one or more computer-readable storage media, input unit 503, display unit 504, sensor 504, audio circuitry 506, Wireless Fidelity (WiFi) module 507, processor 508 including one or more processing cores, and power supply 509. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The rf circuit 501 may be used for receiving and transmitting information, or receiving and transmitting signals during a call, and in particular, receives downlink information of a base station and then sends the received downlink information to one or more processors 508 for processing; in addition, data relating to uplink is transmitted to the base station. In general, radio frequency circuit 501 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the radio frequency circuit 501 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 502 may be used to store applications and data. Memory 502 stores applications containing executable code. The application programs may constitute various functional modules. The processor 508 executes various functional applications and data processing by executing application programs stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 508 and the input unit 503 access to the memory 502.
The input unit 503 may be used to receive input numbers, character information, or user characteristic information (such as a fingerprint), and generate a keyboard, mouse, joystick, optical, or trackball signal input related to user setting and function control. In particular, in one particular embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 508, and can receive and execute commands sent by the processor 508.
The display unit 504 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 504 may include a display panel. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 508 to determine the type of touch event, and then the processor 508 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 7 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 505, such as light sensors, motion sensors, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
The audio circuit 506 may provide an audio interface between the user and the electronic device through a speaker, microphone. The audio circuit 506 can convert the received audio data into an electrical signal, transmit the electrical signal to a speaker, and convert the electrical signal into a sound signal to output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 506 and converted into audio data, which is then processed by the audio data output processor 508 and then sent to another electronic device via the rf circuit 501, or the audio data is output to the memory 502 for further processing. The audio circuit 506 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
Wireless fidelity (WiFi) belongs to short-distance wireless transmission technology, and electronic equipment can help users to send and receive e-mails, browse webpages, access streaming media and the like through a wireless fidelity module 507, and provides wireless broadband internet access for users. Although fig. 7 shows the wireless fidelity module 507, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 508 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the electronic device. Optionally, processor 508 may include one or more processing cores; preferably, the processor 508 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 508.
The electronic device also includes a power supply 509 (such as a battery) to power the various components. Preferably, the power source may be logically connected to the processor 508 through a power management system, so that the power management system may manage charging, discharging, and power consumption management functions. The power supply 509 may also include any component such as one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown in fig. 7, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It should be noted that, as one of ordinary skill in the art would understand, all or part of the steps in the various methods of the above embodiments may be implemented by relevant hardware instructed by a program, where the program may be stored in a computer-readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal, and during the execution, the flow of the embodiments such as the information distribution method may be included. Among others, the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
In the above, detailed descriptions are given to the application program closing method, the application program closing device, the storage medium, and the electronic device, and each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, 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 application.

Claims (10)

1. An application closing method is characterized by comprising the following steps:
respectively acquiring calorific value generated by a terminal when each application program in the terminal runs so as to establish a corresponding relation between each application program and the calorific value, wherein the calorific value generated by the terminal when each application program runs is calculated by adopting a method of calculating a difference value between a terminal standby temperature and a terminal temperature when only one application program runs, and the terminal temperature is calculated according to the temperatures of a camera, a CPU and a GPU;
when the residual electric quantity of the terminal is smaller than the preset electric quantity, acquiring an application program set currently operated by the terminal;
determining a target application program according to the application program set and the corresponding relation;
and closing the target application program.
2. The method for closing an application program according to claim 1, wherein the step of respectively acquiring the heating value generated by the terminal when each application program in the terminal runs specifically comprises:
acquiring a first temperature of the terminal in a standby state, wherein the standby state is a state that the terminal does not run a third-party application program;
acquiring a second temperature of the terminal when an application program is operated;
and calculating the heating value of the application program according to the first temperature and the second temperature.
3. The method for closing the application program according to claim 2, wherein the step of obtaining the first temperature of the terminal in the standby state specifically comprises:
acquiring the temperature of each heating source at different positions of the terminal in a standby state;
and calculating the first temperature of the terminal according to the temperature of each heating source.
4. The method for closing an application program according to claim 1, wherein the step of determining the target application program according to the correspondence between the set of application programs and the target application program specifically comprises:
sequencing the application programs in the application program set according to the heating value in the corresponding relation to obtain a sequencing result;
determining the number of target application programs according to the residual electric quantity;
and determining the target application program according to the sequencing result and the quantity.
5. The method for closing the application program according to claim 4, wherein the step of determining the number of the target application programs according to the remaining power specifically comprises:
determining a preset residual capacity interval in which the residual capacity is located;
and acquiring the number of target application programs corresponding to the preset residual electric quantity interval.
6. An application shutdown apparatus, comprising: the system comprises a heating value acquisition module, a set acquisition module, a determination module and a closing module;
the heating value obtaining module is used for respectively obtaining heating values generated by the terminal when each application program in the terminal runs so as to establish a corresponding relation between each application program and the heating values, wherein the heating values generated by the terminal when each application program runs are calculated by adopting a method for calculating a difference value between a terminal standby temperature and a terminal temperature when only one application program runs, and the terminal temperature is calculated according to the temperatures of a camera, a CPU and a GPU;
the set acquisition module is used for acquiring an application program set currently operated by the terminal when the residual electric quantity of the terminal is less than a preset electric quantity;
the determining module is used for determining a target application program according to the application program set and the corresponding relation;
the closing module is used for closing the target application program.
7. The application shutdown device according to claim 6, wherein the heating value acquisition module specifically includes: the device comprises a first obtaining submodule, a second obtaining submodule and a calculating submodule;
the first obtaining submodule is used for obtaining a first temperature of the terminal in a standby state, and the standby state is a state that the terminal does not run a third-party application program;
the second obtaining submodule is used for obtaining a second temperature of the terminal when an application program is operated;
and the calculation submodule is used for calculating the heating value of the application program according to the first temperature and the second temperature.
8. The apparatus for closing an application according to claim 6, wherein the determining module specifically comprises: the device comprises a sequencing submodule, a first determining submodule and a second determining submodule;
the sequencing submodule is used for sequencing the application programs in the application program set according to the heating values in the corresponding relation to obtain a sequencing result;
the first determining submodule is used for determining the number of target application programs according to the residual electric quantity;
and the second determining submodule is used for determining the target application program according to the sequencing result and the quantity.
9. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method according to any of the claims 1-5.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-5 are implemented when the processor executes the program.
CN201711050148.6A 2017-10-31 2017-10-31 Application program closing method and device, storage medium and electronic equipment Active CN107734618B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711050148.6A CN107734618B (en) 2017-10-31 2017-10-31 Application program closing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711050148.6A CN107734618B (en) 2017-10-31 2017-10-31 Application program closing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107734618A CN107734618A (en) 2018-02-23
CN107734618B true CN107734618B (en) 2021-01-15

Family

ID=61202062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711050148.6A Active CN107734618B (en) 2017-10-31 2017-10-31 Application program closing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107734618B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110266098B (en) * 2019-05-30 2020-11-10 浙江联海美膳电子商务有限公司 Power supply management method of food vending machine
CN110727561B (en) * 2019-10-22 2023-08-01 Oppo广东移动通信有限公司 Abnormal heat dissipation detection method, device, terminal and storage medium
CN110955580B (en) * 2019-12-09 2023-10-03 Oppo广东移动通信有限公司 Shell temperature acquisition method and device, storage medium and electronic equipment
CN114205451B (en) * 2021-12-13 2023-06-09 湖南汽车工程职业学院 Processing system for shielding standby program of mobile phone

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2765481A1 (en) * 2011-10-09 2014-08-13 Huizhou Tcl Mobile Communication Co., Ltd. Mobile terminal and method for adjusting operation load of mobile terminal
CN104199727A (en) * 2014-08-14 2014-12-10 北京金山安全软件有限公司 Method and device for reducing terminal temperature and terminal
CN104267995A (en) * 2014-09-30 2015-01-07 北京金山安全软件有限公司 Application processing method and device and terminal
CN106095063A (en) * 2016-06-15 2016-11-09 乐视控股(北京)有限公司 The power consumption management method of mobile terminal and power consumption management system
CN107168109A (en) * 2016-03-07 2017-09-15 中兴通讯股份有限公司 The adaptive cool-down method and device of a kind of mobile terminal
CN107249081A (en) * 2017-06-27 2017-10-13 广东欧珀移动通信有限公司 Mobile terminal and its management method, computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2765481A1 (en) * 2011-10-09 2014-08-13 Huizhou Tcl Mobile Communication Co., Ltd. Mobile terminal and method for adjusting operation load of mobile terminal
CN104199727A (en) * 2014-08-14 2014-12-10 北京金山安全软件有限公司 Method and device for reducing terminal temperature and terminal
CN104267995A (en) * 2014-09-30 2015-01-07 北京金山安全软件有限公司 Application processing method and device and terminal
CN107168109A (en) * 2016-03-07 2017-09-15 中兴通讯股份有限公司 The adaptive cool-down method and device of a kind of mobile terminal
CN106095063A (en) * 2016-06-15 2016-11-09 乐视控股(北京)有限公司 The power consumption management method of mobile terminal and power consumption management system
CN107249081A (en) * 2017-06-27 2017-10-13 广东欧珀移动通信有限公司 Mobile terminal and its management method, computer-readable recording medium

Also Published As

Publication number Publication date
CN107734618A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107800651B (en) Application program closing method and device, storage medium and electronic equipment
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN106786962B (en) Charging control method and device and terminal
WO2017206916A1 (en) Method for determining kernel running configuration in processor and related product
CN109062467B (en) Split screen application switching method and device, storage medium and electronic equipment
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN108039963B (en) Container configuration method and device and storage medium
CN107172671B (en) Channel switching method, device, storage medium and terminal
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
CN107450029B (en) Battery state checking method and device, computer equipment and computer readable storage medium
EP3242447A1 (en) Information recommendation management method, device and system
EP2869604B1 (en) Method, apparatus and device for processing a mobile terminal resource
CN105227598B (en) Resource sharing method, device and system based on cloud storage
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN112749074A (en) Test case recommendation method and device
CN106302101B (en) Message reminding method, terminal and server
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN106454953B (en) Flow control method, device and terminal
CN111404242A (en) Charging method, charging device, storage medium and mobile terminal
CN110768350B (en) Charging method, charging device, storage medium and electronic equipment
CN108920086B (en) Split screen quitting method and device, storage medium and electronic equipment
CN108269223B (en) Webpage graph drawing method and terminal
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant