CN107800651B - 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
CN107800651B
CN107800651B CN201711047141.9A CN201711047141A CN107800651B CN 107800651 B CN107800651 B CN 107800651B CN 201711047141 A CN201711047141 A CN 201711047141A CN 107800651 B CN107800651 B CN 107800651B
Authority
CN
China
Prior art keywords
application program
application
consumed
terminal
time period
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
CN201711047141.9A
Other languages
Chinese (zh)
Other versions
CN107800651A (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 CN201711047141.9A priority Critical patent/CN107800651B/en
Publication of CN107800651A publication Critical patent/CN107800651A/en
Application granted granted Critical
Publication of CN107800651B publication Critical patent/CN107800651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/803Application aware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2475Traffic characterised by specific attributes, e.g. priority or QoS for supporting traffic characterised by the type of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/826Involving periods of time

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (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: the method comprises the steps of obtaining historical use information of each application program in a terminal in a first preset time period, wherein the historical use information comprises running time and consumed data flow, calculating the consumed data flow of each application program in a second preset time period according to the historical use information, judging whether the current network state of the terminal meets preset conditions or not, if so, obtaining an application program set currently running by the terminal, determining a target application program in the application program set according to the consumed data flow of each application program in the second preset time period, and closing the target application program. The method and the device can detect the data flow use condition of the application program in the terminal, and close the application program with higher consumption flow when the network state of the terminal meets the preset condition, so that the flow control effect can be improved.

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.
However, for most subscribers, the network cost of the current operator is generally high, and the subscriber is liable to consume excessive traffic inadvertently, so that the traffic needs to be controlled technically.
At present, the solution of flow control is mainly an increased flow consumption list in the intelligent mobile terminal. Although the method can enable a user to know the traffic consumption situation of the built-in application in time, the background consumption of the traffic is prevented, the consumed traffic statistics situation is in the list, and the consumption of the traffic by some applications is not prohibited from the source. In addition, some intelligent mobile terminals also provide a function of prohibiting network access for data access applications, and users can manually prohibit network access for applications according to needs.
Disclosure of Invention
The embodiment of the application program closing method and device, the storage medium and the electronic equipment can improve the flow control effect.
In a first aspect, an embodiment of the present application provides an application closing method, including:
acquiring historical use information of each application program in the terminal in a first preset time period, wherein the historical use information comprises running duration and consumed data traffic;
calculating the data flow consumed by each application program in a second preset time period according to the historical use information;
judging whether the current network state of the terminal meets a preset condition or not;
if so, acquiring an application program set currently operated by the terminal;
and determining a target application program in the application program set according to the data flow consumed by each application program in a second preset time period, and closing the target application program.
In a second aspect, an embodiment of the present application further provides an application closing apparatus, including: the device comprises an information acquisition module, a calculation module, a judgment module, a set acquisition module and a closing module;
the information acquisition module is used for acquiring historical use information of each application program in the terminal in a first preset time period, wherein the historical use information comprises running duration and consumed data traffic;
the calculation module is used for calculating the data flow consumed by each application program in a second preset time period according to the historical use information;
the judging module is used for judging whether the current network state of the terminal meets a preset condition or not;
the set acquisition module is used for acquiring the current running application program set of the terminal when the judgment module judges that the application program set is positive;
and the closing module is used for determining a target application program in the application program set according to the data flow consumed by each application program in a second preset time period and 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, obtaining historical use information of each application program in a terminal in a first preset time period, wherein the historical use information includes running time and consumed data flow, calculating the consumed data flow of each application program in a second preset time period according to the historical use information, judging whether the current network state of the terminal meets preset conditions or not, if yes, obtaining an application program set currently running by the terminal, determining a target application program in the application program set according to the consumed data flow of each application program in the second preset time period, and closing the target application program. The method and the device can detect the data flow use condition of the application program in the terminal, and close the application program with higher consumption flow when the network state of the terminal meets the preset condition, so that the flow control effect can be improved.
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 application monitoring of an application closing method according to an 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, obtaining historical use information of each application program in the terminal in a first preset time period, wherein the historical use information comprises running time and consumed data traffic.
In an embodiment, the terminal may monitor historical usage information of any application, where the historical usage information may include an operation duration and a consumed data traffic in a first preset time period in the past, and of course, the historical usage information may also include other usage information of the application, such as a number of times of starting, an amount of consumed power, and the like.
The first preset time period is, for example, 24 hours, and the application monitoring schematic diagram described with reference to fig. 2 monitors the running time length and the consumed data traffic of the application program in the terminal in the last 24 hours, respectively. For example, as can be seen from fig. 2, within the last 24 hours, the running duration of the application a is 10 hours and the consumed data traffic is 200M, the running duration of the application B is 2 hours and the consumed data traffic is 200M, the running duration of the application C is 6 hours and the consumed data traffic is 400M, the running duration of the application D is 14 hours and the consumed data traffic is 600M.
The data traffic may be data traffic consumed by a network using 2G (second generation mobile phone communication specification standard), 3G (third generation mobile communication technology), 4G (fourth generation mobile communication technology), or 5G (fifth generation mobile communication technology).
In an embodiment, the step of acquiring the data traffic consumed by each application program in the first preset time period may specifically include: when the terminal is connected with a network, data information of each data packet is obtained, the data information comprises a protocol number of the data packet, the size and the port number of the data packet are obtained according to the protocol number of the data packet, an application to which the data packet belongs is determined according to the port number of the data packet, data traffic consumed by the application at each moment and corresponding to the data packet is recorded, the data traffic consumed by the application and corresponding to the data packet is the size of the data packet, and the data traffic consumed by the application in a first preset time period is counted.
In a specific embodiment, when a network is used, a data packet is a data unit in communication transmission, the data packet includes multiple transmission protocols in a transmission layer, different types of data packets need to be analyzed by using corresponding protocols, and the protocols are identified by protocol numbers. When the application layer intercepts a data packet, it can determine what protocol to use to parse the data packet by obtaining the protocol number of the data packet. The application is embodied as a process in the operating system, which process is identified by a PID (process identification). When a process establishes a connection with a network server, the system allocates a port number to the process, and the port number can only be used by one process at the same time. And analyzing the data packet according to the protocol number to obtain the size and the port number of the data packet. The port number corresponds to the process, so that the process identifier corresponding to the data packet can be obtained according to the port number, the process corresponding to the data packet can be further determined according to the process identifier, and the process is embodied by the operating system, so that the application to which the data packet belongs can be determined according to the port number. And then recording the application corresponding to each data packet at each moment and the size of the data packet, so as to further count the data traffic consumed by each application in a first preset time period, wherein the data traffic is the sum of the sizes of the data packets corresponding to the application in the first preset time period.
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, calculating the data flow consumed by each application program in a second preset time period according to the historical use information.
The second preset time period is less than the first preset time period, and the second preset time period is a unit time for measuring data traffic consumed by each application program, and is, for example, 1 hour. In an embodiment, the terminal may perform operation processing on the obtained running time length and the consumed flow of the application program within the first preset time period, for example, the flow value is divided by the running time length to obtain the consumed flow of the application program in unit time.
Continuing with the example of fig. 2, the running time of the application a is 10 hours, the consumed data flow is 200M, and the calculated flow data consumed by the application a in one hour is 20M; the running time of the application program B is 2 hours, the consumed data flow is 200M, and the calculated flow data consumed by the application program B in one hour is 100M; the running time of the application program C is 6 hours, the consumed data flow is 400M, and the calculated flow data consumed by the application program C in one hour is 67M; the running time of the application program D is 14 hours, the consumed data flow is 600M, and the calculated consumed flow data of the application program D in one hour is 43M.
And step S103, judging whether the current network state of the terminal meets a preset condition, if not, executing step S104, and if so, ending the process.
Without WIFI, the mobile device may spend data traffic accessing the network, and typically user data traffic is limited, or is paid per flow, or is monthly limited, and may cost a lot of money if excess amounts or excessive data traffic is used. The method and the device aim to solve the problems and protect the data traffic of the user within a certain time from exceeding the limit.
Therefore, in an embodiment, the step of determining whether the current network state of the terminal meets the preset condition may specifically include:
judging whether the terminal is connected with a wireless local area network (WIFI) currently;
if not, determining that the current network state of the terminal meets the preset condition.
And step S104, acquiring the application program set currently operated by the terminal.
In an embodiment, the application program currently running by the terminal may be acquired through an application identifier, where the application identifier refers to a unique identifier of an application installed in the terminal, and thus the application of the terminal may be identified by 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 S105, determining a target application program in the application program set according to the data flow consumed by each application program in a second preset time period, and closing the target application program.
In an embodiment, the application programs in the application program set may be sorted according to the data traffic consumed in the second preset time period, and then the preset number of application programs with higher data traffic consumption are determined as the target application programs and are 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.
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, historical use information of each application in the terminal may be obtained in a first preset time period, where the historical use information includes an operation duration and a consumed data traffic, the data traffic consumed by each application in a second preset time period is calculated according to the historical use information, whether a current network state of the terminal meets a preset condition is determined, if yes, a current application set running in the terminal is obtained, a target application is determined in the application set according to the data traffic consumed by each application in the second preset time period, and the target application is closed. The method and the device can detect the data flow service condition of the application program in the terminal, and close the application program with higher consumption flow when the network state of the terminal meets the preset condition, thereby improving the flow control effect, avoiding further consumption of the data flow by some applications and avoiding generating unexpected large flow cost.
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, obtaining the historical use information of each application program in the terminal in a first preset time period, wherein the historical use information comprises the running time length and the consumed data traffic.
In an embodiment, the terminal may monitor historical usage information of any application, where the historical usage information may include an operation duration and a consumed data traffic in a first preset time period in the past, and of course, the historical usage information may also include other usage information of the application, such as a number of times of starting, an amount of consumed power, and the like.
And step S202, calculating the data flow consumed by each application program in a second preset time period according to the historical use information.
In an embodiment, the terminal may perform operation processing on the obtained running time length and the consumed flow of the application program within the first preset time period, for example, the flow value is divided by the running time length to obtain the consumed flow of the application program in unit time.
For example, the running time of the application a is 10 hours, the consumed data flow is 200M, and the calculated flow data consumed by the application a in one hour is 20M; the running time of the application program B is 2 hours, the consumed data flow is 200M, and the calculated flow data consumed by the application program B in one hour is 100M; the running time of the application program C is 6 hours, the consumed data flow is 400M, and the calculated flow data consumed by the application program C in one hour is 67M; the running time of the application program D is 14 hours, the consumed data flow is 600M, and the calculated consumed flow data of the application program D in one hour is 43M.
Step S203, determining whether the terminal is currently connected to the wlan, if not, performing step S204, and if so, ending the process
Without WIFI, the mobile device may spend data traffic accessing the network, and typically user data traffic is limited, or is paid per flow, or is monthly limited, and may cost a lot of money if excess amounts or excessive data traffic is used. The method and the device aim to solve the problems and protect the data traffic of the user within a certain time from exceeding the limit.
And step S204, acquiring the application program set currently operated by the terminal.
In an embodiment, the application program currently running by the terminal may be acquired through an application identifier, where the application identifier refers to a unique identifier of an application installed in the terminal, and thus the application of the terminal may be identified by 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.
Step S205, obtaining the current remaining data traffic in the user id card corresponding to the terminal.
For example, the terminal sends a remaining traffic acquisition request to a mobile data network operator (mobile, unicom, telecom, etc.) corresponding to the SIM card, where the remaining traffic acquisition request carries a user identifier, and the operator server returns the remaining traffic corresponding to the user identifier to the user terminal according to the remaining traffic acquisition request.
In other embodiments, the remaining data traffic information may also be generated by a traffic statistic function of the terminal itself, for example, the remaining traffic is calculated according to a total flow of packages currently used by the user identification card and a traffic value already used by the terminal.
Step S206, sorting the application programs in the application program set according to the data traffic consumed by each application program in the second preset time period, so as to obtain a sorting result.
For example, the application set includes an application a, an application B, an application C, and an application D, where the flow data consumed by the application a in one hour is 20M, the flow data consumed by the application B in one hour is 100M, the flow data consumed by the application C in one hour is 67M, and the flow data consumed by the application D in one hour is 43M, and therefore the flow values consumed are sorted in descending order of flow value to be the application B, the application C, the application D, and the application a.
And step S207, determining the number of the target application programs according to the residual data flow.
In an embodiment, the terminal may preset a plurality of remaining flow intervals, and each remaining flow interval corresponds to a quantity value of the target application program, for example, the quantity value corresponding to the remaining flow interval 1M-200M is 3, the quantity value corresponding to the remaining flow interval 201M-400M is 2, the quantity value corresponding to the remaining flow interval 401M-500M is 1, and if the current remaining flow is 300M, the corresponding quantity of the target application program is 2, where the above intervals may be set by the user according to the actual situation, and the application does not further limit the above.
Therefore, the step of determining the number of target applications according to the remaining data traffic may specifically include:
determining a preset residual data flow interval where the residual data flow is located;
and acquiring the number of target application programs corresponding to the preset residual data flow interval.
And step S208, determining the target application program according to the sequencing result and the quantity, and closing the target application program.
As can be seen from the above, in the embodiment of the application, historical usage information of each application in the terminal may be obtained in a first preset time period, where the historical usage information includes an operation duration and a consumed data traffic, the data traffic consumed by each application in a second preset time period is calculated according to the historical usage information, whether the terminal is currently connected to the wireless local area network is determined, if not, an application set currently operated by the terminal is obtained, current remaining data traffic in the user identity card corresponding to the terminal is obtained, the applications in the application set are sorted according to the data traffic consumed by each application in the second preset time period, so as to obtain a sorting result, the number of target applications is determined according to the remaining data traffic, the target applications are determined according to the sorting result and the number, and the target applications are closed. The method and the device can detect the data flow service condition of the application program in the terminal, and close the application program with higher consumption flow when the network state of the terminal meets the preset condition, thereby improving the flow control effect, avoiding further consumption of the data flow by some applications and avoiding generating unexpected large flow cost.
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: an information acquisition module 301, a calculation module 302, a judgment module 303, a set acquisition module 304, and a shutdown module 305;
the information acquisition module 301 is configured to acquire historical usage information of each application in the terminal in a first preset time period, where the historical usage information includes an operation duration and a consumed data traffic;
a calculating module 302, configured to calculate, according to the historical usage information, a data flow consumed by each application program in a second preset time period;
a judging module 303, configured to judge whether a current network state of the terminal meets a preset condition;
a set obtaining module 304, configured to obtain, when the determining module 303 determines that the current application program set is running, an application program set currently running in the terminal;
a closing module 305, configured to determine a target application program in the set of application programs according to the data traffic consumed by each application program in a second preset time period, and close the target application program.
With reference to fig. 5, in an embodiment, the determining module 303 specifically includes: a judgment sub-module 3031 and a determination sub-module 3032;
a determining submodule 3031, configured to determine whether the terminal is currently connected to a wireless local area network;
and the determining submodule 3032 is configured to determine that the current network state of the terminal meets a preset condition when the judging submodule 3031 judges that the current network state of the terminal does not meet the preset condition.
In an embodiment, the apparatus 30 may further include: a traffic acquisition module 306;
a traffic obtaining module 306, configured to obtain current remaining data traffic in the user identity card corresponding to the terminal before the closing module 305 determines a target application program in the set of application programs according to the data traffic consumed by each application program in a second preset time period;
the closing module 305 is specifically configured to determine a target application program in the set of application programs according to the data traffic consumed by each application program in the second preset time period and the remaining data traffic.
In an embodiment, the shutdown module 305 may specifically include: a sorting sub-module 3051, a first determination sub-module 3052, and a second determination sub-module 3053;
the sequencing submodule 3051 is configured to sequence the applications in the application set according to the data traffic consumed by each application in a second preset time period, so as to obtain a sequencing result;
the first determining submodule 3052, configured to determine the number of the target applications according to the remaining data traffic;
a second determining sub-module 3053, configured to determine the target application according to the sorting result and the number.
As can be seen from the above, the application closing apparatus 30 according to the embodiment of the present application may obtain, in a first preset time period, historical usage information of each application in the terminal, where the historical usage information includes an operation duration and a consumed data traffic, calculate, according to the historical usage information, a data traffic consumed by each application in a second preset time period, determine whether a current network state of the terminal meets a preset condition, if so, obtain an application set currently operated by the terminal, determine, according to the data traffic consumed by each application in the second preset time period, a target application in the application set, and close the target application. The method and the device can detect the data flow service condition of the application program in the terminal, and close the application program with higher consumption flow when the network state of the terminal meets the preset condition, thereby improving the flow control effect, avoiding further consumption of the data flow by some applications and avoiding generating unexpected large flow cost.
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:
acquiring historical use information of each application program in the terminal in a first preset time period, wherein the historical use information comprises running duration and consumed data traffic;
calculating the data flow consumed by each application program in a second preset time period according to the historical use information;
judging whether the current network state of the terminal meets a preset condition or not;
if so, acquiring an application program set currently operated by the terminal;
and determining a target application program in the application program set according to the data flow consumed by each application program in a second preset time period, 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:
acquiring historical use information of each application program in the terminal in a first preset time period, wherein the historical use information comprises running duration and consumed data traffic;
calculating the data flow consumed by each application program in a second preset time period according to the running time length and the consumed data flow;
judging whether the current network state of the terminal meets a preset condition or not;
if so, acquiring an application program set currently operated by the terminal;
obtaining the current residual data flow in the user identification card corresponding to the terminal, determining a preset residual data flow interval where the residual data flow is located, obtaining the number of target application programs corresponding to the preset residual data flow interval, determining the target application programs in the application program set according to the data flow consumed by each application program in a second preset time period and the number, and closing the target application programs.
2. The method for closing the application program according to claim 1, wherein the step of determining whether the current network state of the terminal meets a preset condition specifically comprises:
judging whether the terminal is connected with a wireless local area network currently;
if not, determining that the current network state of the terminal meets a preset condition.
3. The application shutdown method of claim 1, wherein prior to the step of determining a target application among the set of applications based on the data traffic consumed by the each application over the second preset time period, the method further comprises:
acquiring the current residual data flow in a user identity identification card corresponding to the terminal;
the step of determining a target application program in the set of application programs according to the data traffic consumed by each application program in a second preset time period specifically includes:
and determining a target application program in the application program set according to the data traffic consumed by each application program in a second preset time period and the residual data traffic.
4. The method for closing an application according to claim 3, wherein the step of determining a target application among the set of applications according to the data traffic consumed by each application in the second preset time period and the remaining data traffic specifically comprises:
sequencing the application programs in the application program set according to the data traffic consumed by each application program in a second preset time period to obtain a sequencing result;
determining the number of target application programs according to the residual data flow;
and determining the target application program according to the sequencing result and the quantity.
5. An application shutdown apparatus, comprising: the device comprises an information acquisition module, a calculation module, a judgment module, a set acquisition module and a closing module;
the information acquisition module is used for acquiring historical use information of each application program in the terminal in a first preset time period, wherein the historical use information comprises running duration and consumed data traffic;
the calculation module is used for calculating the data flow consumed by each application program in a second preset time period according to the running time length and the consumed data flow;
the judging module is used for judging whether the current network state of the terminal meets a preset condition or not;
the set acquisition module is used for acquiring the current running application program set of the terminal when the judgment module judges that the application program set is positive;
the closing module is configured to obtain current remaining data traffic in the user identification card corresponding to the terminal, determine a preset remaining data traffic interval where the remaining data traffic is located, obtain the number of target applications corresponding to the preset remaining data traffic interval, determine a target application among the set of applications according to the data traffic consumed by each application in a second preset time period and the number, and close the target application.
6. The apparatus for closing an application according to claim 5, wherein the determining module specifically comprises: a judgment submodule and a determination submodule;
the judging submodule is used for judging whether the terminal is connected with a wireless local area network currently;
and the determining submodule is used for determining that the current network state of the terminal meets a preset condition when the judging submodule judges that the current network state of the terminal does not meet the preset condition.
7. The application shutdown device of claim 5, wherein the device further comprises: a flow acquisition module;
the flow acquiring module is configured to acquire a current remaining data flow in the user identity card corresponding to the terminal before the closing module determines a target application program in the set of application programs according to the data flow consumed by each application program in a second preset time period;
the closing module is specifically configured to determine a target application program in the application program set according to the data traffic consumed by each application program in a second preset time period and the remaining data traffic.
8. The application shutdown device of claim 7, wherein the shutdown 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 data traffic consumed by each application program in a second preset time period to obtain a sequencing result;
the first determining submodule is used for determining the number of target application programs according to the residual data flow;
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, wherein the computer program, when executed by a processor, performs the steps of the method according to any one of claims 1-4.
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-4 are implemented when the processor executes the program.
CN201711047141.9A 2017-10-31 2017-10-31 Application program closing method and device, storage medium and electronic equipment Active CN107800651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711047141.9A CN107800651B (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
CN201711047141.9A CN107800651B (en) 2017-10-31 2017-10-31 Application program closing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107800651A CN107800651A (en) 2018-03-13
CN107800651B true CN107800651B (en) 2021-03-02

Family

ID=61548569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711047141.9A Active CN107800651B (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) CN107800651B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616653B (en) * 2018-03-30 2020-01-17 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN109348041B (en) * 2018-08-13 2021-07-27 珠海格力电器股份有限公司 Application program networking control method and device, storage medium and terminal
CN109240790B (en) * 2018-09-21 2022-01-28 Oppo广东移动通信有限公司 Multi-window management method and system and android terminal
CN113272786A (en) * 2018-12-29 2021-08-17 深圳市欢太科技有限公司 Application program control method and device, storage medium and electronic equipment
WO2020206690A1 (en) * 2019-04-12 2020-10-15 深圳市欢太科技有限公司 Application cleaning method and apparatus, storage medium and electronic device
CN110445924B (en) * 2019-06-26 2021-06-04 维沃移动通信有限公司 Network task execution method and terminal equipment
CN112152971A (en) * 2019-06-28 2020-12-29 北京奇虎科技有限公司 Method and apparatus for controlling network usage behavior, electronic device, and medium
CN111623863A (en) * 2020-04-16 2020-09-04 中山乐心电子有限公司 Electronic scale control method and electronic scale
CN114422449B (en) * 2020-10-10 2024-03-01 中国联合网络通信集团有限公司 Mobile data management and control method, device, equipment and storage medium
CN112351250B (en) * 2020-10-21 2023-05-26 杭州海康威视数字技术股份有限公司 Coding parameter adjustment method, device and equipment and storage medium
CN112671672B (en) * 2020-12-16 2023-12-08 深圳Tcl新技术有限公司 Application flow control method, device, equipment and readable storage medium
CN112787828B (en) * 2021-01-08 2023-03-21 重庆创通联智物联网有限公司 Application flow statistical method and device and mobile electronic device
CN114758447A (en) * 2021-01-11 2022-07-15 金卡智能集团股份有限公司 Method, device and equipment for determining state of terminal equipment and readable storage medium
CN115119154A (en) * 2021-03-17 2022-09-27 深圳市万普拉斯科技有限公司 Data connection management method and device, electronic equipment and readable storage medium
CN114268690B (en) * 2021-12-17 2023-04-18 中国电信股份有限公司 Application program control method and device, electronic equipment and storage medium
CN115033304A (en) * 2022-06-27 2022-09-09 维沃移动通信有限公司 Application program control method and device and electronic equipment
CN116320019B (en) * 2023-05-16 2023-10-27 荣耀终端有限公司 Data acquisition method, medium and electronic equipment
CN117148798A (en) * 2023-09-01 2023-12-01 山东溯源安全科技有限公司 Equipment monitoring method and device, storage medium and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102612084A (en) * 2012-02-24 2012-07-25 中兴通讯股份有限公司 Method and device for controlling data traffic
CN104461734A (en) * 2014-11-26 2015-03-25 北京奇虎科技有限公司 Processing method and system for terminal applications
CN104486505A (en) * 2014-12-16 2015-04-01 深圳市中兴移动通信有限公司 Mobile terminal, and method and device thereof for preventing data stream waste
CN104580684A (en) * 2013-10-23 2015-04-29 中兴通讯股份有限公司 Flow control method and device
CN105068823A (en) * 2015-07-09 2015-11-18 广东欧珀移动通信有限公司 Application processing method, application processing apparatus and terminal
CN105704758A (en) * 2016-01-05 2016-06-22 广东欧珀移动通信有限公司 Method and device of closing social applications based on flow monitoring
CN106598202A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for managing application programs
CN106656989A (en) * 2016-11-03 2017-05-10 北京奇虎科技有限公司 Flow monitoring method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209439B (en) * 2013-03-14 2016-07-06 小米科技有限责任公司 The method of a kind of data traffic monitoring, device and equipment
US20160224764A1 (en) * 2015-01-30 2016-08-04 Konica Minolta Laboratory U.S.A., Inc. Dynamically enforcing access control for digital document already opened on a client computer

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102612084A (en) * 2012-02-24 2012-07-25 中兴通讯股份有限公司 Method and device for controlling data traffic
CN104580684A (en) * 2013-10-23 2015-04-29 中兴通讯股份有限公司 Flow control method and device
CN104461734A (en) * 2014-11-26 2015-03-25 北京奇虎科技有限公司 Processing method and system for terminal applications
CN104486505A (en) * 2014-12-16 2015-04-01 深圳市中兴移动通信有限公司 Mobile terminal, and method and device thereof for preventing data stream waste
CN105068823A (en) * 2015-07-09 2015-11-18 广东欧珀移动通信有限公司 Application processing method, application processing apparatus and terminal
CN105704758A (en) * 2016-01-05 2016-06-22 广东欧珀移动通信有限公司 Method and device of closing social applications based on flow monitoring
CN106656989A (en) * 2016-11-03 2017-05-10 北京奇虎科技有限公司 Flow monitoring method and terminal
CN106598202A (en) * 2016-12-20 2017-04-26 北京小米移动软件有限公司 Method and device for managing application programs

Also Published As

Publication number Publication date
CN107800651A (en) 2018-03-13

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
CN107966209B (en) Ambient light detection method, ambient light detection device, storage medium, and electronic apparatus
CN107277912B (en) Radio frequency interference processing method, device, storage medium and terminal
CN107391259B (en) Resource processing method and device, computer readable storage medium and mobile terminal
CN106786962B (en) Charging control method and device and terminal
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN107368400B (en) CPU monitoring method and device, computer readable storage medium and mobile terminal
CN107302628B (en) Application function control method and related product
CN107172671B (en) Channel switching method, device, storage medium and terminal
WO2017206915A1 (en) Method for determining kernel running configuration in processor and related product
JP2018500811A (en) Power management method and power management apparatus for user equipment
CN108958629B (en) Split screen quitting method and device, storage medium and electronic equipment
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN108810057B (en) User behavior data acquisition method and device and storage medium
CN111984401A (en) Memory overflow management method and device, electronic equipment and storage medium
CN111104180B (en) Application program optimization method and device, storage medium and electronic equipment
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN106302101B (en) Message reminding method, terminal and server
CN107622234B (en) Method and device for displaying budding face gift
CN106454953B (en) Flow control method, device and terminal
CN106899959B (en) Method, device, terminal and system for obtaining SIM card information

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
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.

GR01 Patent grant
GR01 Patent grant