CN107800651A - Closing application program method, apparatus, storage medium and electronic equipment - Google Patents

Closing application program method, apparatus, storage medium and electronic equipment Download PDF

Info

Publication number
CN107800651A
CN107800651A CN201711047141.9A CN201711047141A CN107800651A CN 107800651 A CN107800651 A CN 107800651A CN 201711047141 A CN201711047141 A CN 201711047141A CN 107800651 A CN107800651 A CN 107800651A
Authority
CN
China
Prior art keywords
application program
application
terminal
module
preset time
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.)
Granted
Application number
CN201711047141.9A
Other languages
Chinese (zh)
Other versions
CN107800651B (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

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/70Admission control or resource allocation
    • H04L47/80Actions related to the nature of the flow or the user
    • H04L47/803Application aware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/10Flow control or congestion control
    • H04L47/24Flow control or congestion control depending on the type of traffic, e.g. priority or quality of service [QoS]
    • H04L47/2475Application aware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/70Admission control or resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/826Involving periods of time

Abstract

The embodiment of the present application discloses a kind of closing application program method, apparatus, storage medium and electronic equipment;Methods described includes:The history use information of each application program among terminal is obtained in the first preset time period, history use information includes operation duration and the data traffic of consumption, the data traffic consumed according to each application program of history use information calculating in the second preset time period, judge whether the current network state of terminal meets preparatory condition, if, then obtain the pool of applications that terminal is currently run, the data traffic consumed according to each application program in the second preset time period determines destination application among pool of applications, and closes destination application.The application can be with the data traffic service condition of application program in detection terminal, and the higher application program of consumed flow is closed when terminal network state meets preparatory condition, can improve flow control effect.

Description

Closing application program method, apparatus, storage medium and electronic equipment
Technical field
The application is related to electronic device field, and in particular to a kind of closing application program method, apparatus, storage medium and electricity Sub- equipment.
Background technology
With the development of terminal technology, terminal have begun to from simply provided in the past verbal system become gradually one it is logical With the platform of running software.The platform no longer to provide call management as main purpose, and be to provide one include call management, Running environment including the types of applications softwares such as Entertainment, office account, mobile payment, it is deep with substantial amounts of popularization Enter to the every aspect of the life of people, work.
However, for most of users, the network rate of current operator are universal more expensive, and user accidentally just holds Easy consumption crosses various flow, therefore, it is necessary to technically flow is controlled.
At present, the solution of flow control, the mainly increased flow consumption list in intelligent mobile terminal.Although this Kind mode can allow user to understand the flow Expenditure Levels of built-in application in time, but not helped for preventing flow backstage from consuming Help, be the traffic statistics situation consumed in list, do not forbid some consumption of application to flow from source.In addition, Some intelligent mobile terminals are directed to the application of data access, also there is provided the function of forbidding accessing network, user can root According to needing to go to forbid manually using carrying out network access, these scheme complex operations, flow control effect is poor.
The content of the invention
The embodiment of the present application provides a kind of closing application program method, apparatus, storage medium and electronic equipment, can improve Flow control effect.
In a first aspect, the embodiment of the present application provides a kind of closing application program method, including:
The history use information of each application program among terminal is obtained in the first preset time period, the history uses Information includes operation duration and the data traffic of consumption;
The data that each application program consumes in the second preset time period are calculated according to the history use information Flow;
Judge whether the current network state of the terminal meets preparatory condition;
If so, then obtain the pool of applications that the terminal is currently run;
The data traffic consumed according to each application program in the second preset time period is in the application program collection Be fated middle determination destination application, and closes the destination application.
Second aspect, the embodiment of the present application additionally provide a kind of closing application program device, including:Data obtaining module, Computing module, judge module, set acquisition module and closedown module;
Described information acquisition module, for obtaining the history of each application program among terminal in the first preset time period Use information, the history use information include operation duration and the data traffic of consumption;
The computing module, for calculating each application program when second is default according to the history use information Between in section consumption data traffic;
The judge module, for judging whether the current network state of the terminal meets preparatory condition;
The set acquisition module, for when the judge module is judged as YES, obtaining what the terminal was currently run Pool of applications;
The closedown module, for the data traffic consumed according to each application program in the second preset time period Destination application is determined among the pool of applications, and closes the destination application.
The third aspect, the embodiment of the present application also provide a kind of storage medium, are stored thereon with computer program, the calculating Machine program realizes the step of above-mentioned closing application program method when being executed by processor.
Fourth aspect, the embodiment of the present application also provide a kind of electronic equipment, including memory, processor and are stored in storage Realize that above-mentioned application program is closed on device and the computer program that can run on a processor, during the computing device described program The step of closing method.
The closing application program method that the embodiment of the present application provides is obtained among terminal first in the first preset time period The history use information of each application program, history use information includes operation duration and the data traffic of consumption, according to history Use information calculates the data traffic that each application program consumes in the second preset time period, judges current network-like of terminal Whether state meets preparatory condition, if so, then obtain the pool of applications currently run of terminal, according to each application program the The data traffic of consumption determines destination application among pool of applications in two preset time periods, and closes intended application Program.The application can be with the data traffic service condition of application program in detection terminal, and meets to preset in terminal network state Consumed flow higher application program is closed during condition, flow control effect can be improved.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is a kind of schematic flow sheet for the closing application program method that the embodiment of the present application provides.
Fig. 2 is a kind of application monitoring schematic diagram for the closing application program method that the embodiment of the present application provides.
Fig. 3 is another schematic flow sheet for the closing application program method that the embodiment of the present application provides.
Fig. 4 is a kind of structural representation for the closing application program device that the embodiment of the present application provides.
Fig. 5 is another structural representation for the closing application program device that the embodiment of the present application provides.
Fig. 6 is a kind of structural representation for the electronic equipment that the embodiment of the present application provides.
Fig. 7 is another structural representation for the electronic equipment that the embodiment of the present application provides.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and the principle of the application is to implement one Illustrated in appropriate computing environment.The following description is based on illustrated the application specific embodiment, and it should not be by It is considered as limitation the application other specific embodiments not detailed herein.
In the following description, the specific embodiment of the application is by with reference to as the step performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is performed by computer, this paper institutes The computer of finger, which performs, to be included by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.The data or the opening position being maintained in the memory system of the computer are changed in this operation, and its is reconfigurable Or change the running of the computer in a manner of known to the tester of this area in addition.The data structure that the data are maintained For the provider location of the internal memory, it has the particular characteristics as defined in the data format.But the application principle is with above-mentioned text Word illustrates that it is not represented as a kind of limitation, this area tester will appreciate that plurality of step as described below and behaviour Also may be implemented among hardware.
The principle of the application is grasped using many other wide usages or specific purpose computing, communication environment or configuration Make.The example of the known arithmetic system for being suitable for the application, environment and configuration may include (but not limited to) hold phone, Personal computer, server, multicomputer system, system, body frame configuration computer and distributed arithmetic ring based on micro computer Border, which includes any said system or device.
It will be described in detail respectively below.
The present embodiment will be described from the angle of closing application program device, and the device can specifically be integrated in electronics and set In standby, the electronic equipment can connect the network equipment (such as smart mobile phone, tablet personal computer) for mobile internet and possess network service work( The electronic equipment of energy.
With reference first to Fig. 1, Fig. 1 is a kind of schematic flow sheet for the closing application program method that the embodiment of the present application provides, Comprise the following steps:
Step S101, the history use information of each application program among terminal is obtained in the first preset time period, is gone through History use information includes operation duration and the data traffic of consumption.
In one embodiment, terminal can monitor the history use information of any application program, and the history use information can To be included in the operation duration in the past in the first preset time period and the data traffic of consumption, certainly, above-mentioned history uses letter Breath can also include other use informations of the application program, for example the number of starts, electricity for consuming etc..
Above-mentioned first preset time period is such as 24 hours, application monitoring schematic diagram described in reference diagram 2, small in the past 24 When interior the operation duration of application program and the data traffic of consumption in monitor terminal respectively.Such as shown in Figure 2, in the past 24 Within hour, application program A operation duration is 10 hours, and the data traffic consumed is 200M, during application program B operation A length of 2 hours, and the data traffic consumed is 200M, application program C operation duration is 6 hours, and the data traffic consumed For 400M, application program D operation duration is 14 hours, and the data traffic consumed is 600M.
Wherein, above-mentioned data traffic can be that (third generation moves using 2G (second generation mobile communication technical specification standard), 3G The dynamic communication technology), the data flow that expends of the network such as 4G (fourth generation mobile communication technology) or 5G (the 5th third-generation mobile communication technology) Amount.
In one embodiment, the step for the data traffic that each application program of above-mentioned acquisition consumes in the first preset time period Suddenly can specifically include:When terminal connects network, the data message of each packet is obtained, data message includes packet Protocol number, the protocol number according to packet obtain the size and port numbers of packet, and the port numbers according to packet determine number According to the application belonging to bag, record the data traffic corresponding with packet that the application of each moment expends, wherein, using consuming with Data traffic corresponding to packet is the size of packet, the data traffic that statistics application expends in the first preset time period.
Among specific embodiment, when using network, packet is the data unit in communications, and packet exists Transport layer includes multiple transport protocols, and different types of packet needs to use corresponding agreement to be parsed, and agreement passes through association View number is identified.When application layer is truncated to a packet, the protocol number by obtaining the packet, which is assured that, to be made What packet is parsed with agreement.Application program is presented as process in an operating system, and process passes through PID (process marks Know) mark.When some process and certain webserver, which are established, to be connected, system can be the course allocation a port number, and In synchronization, this port numbers can only be used by a process.Packet is solved according to agreement corresponding to protocol number acquisition Analysis, the size and port numbers of packet can be obtained.Because port numbers are corresponding with process, this is obtained with according to port numbers Process identification (PID) corresponding to packet, process corresponding to this packet can be further determined according to process identification (PID), and process is The embodiment in operating system is applied, therefore, the application belonging to the packet can be determined according to port numbers.Then record is each The size of application and packet corresponding to moment each packet, so as to which further statistics is each applied in the first preset time The data traffic expended in section, data traffic are with applying the size of corresponding each packet in the first preset time period Summation.
It should be noted that the application program in the embodiment of the present application is third party application, namely third party software, The third party software refers to the software that the software company beyond nonlinear editing system manufacturer provides, and system should It may cause the afunction of terminal after closing, therefore the application program that carries of system not application program in this application Comprising within the scope of.
Step S102, the data consumed according to each application program of history use information calculating in the second preset time period Flow.
Wherein, above-mentioned second preset time period is less than the first preset time period, and second preset time period is each to weigh The unit interval of application program consumption data flow, for example be 1 hour.In one embodiment, terminal can be to getting application Operation duration of the program in the first preset time period and the flow of consumption carry out calculation process, when such as using flow value divided by operation Length can obtain the flow that the application program consumes within the unit interval.
Continue by taking Fig. 2 as an example, application program A operation duration is 10 hours, and the data traffic consumed is 200M, is calculated It is 20M that the data on flows that application program A was consumed in one hour, which can be obtained,;Application program B operation duration is 2 hours, and is consumed Data traffic be 200M, can be calculated the data on flows that application program B was consumed in one hour is 100M;Application program C's Operation duration is 6 hours, and the data traffic consumed is 400M, can be calculated the flow that application program C was consumed in one hour Data are 67M;Application program D operation duration is 14 hours, and the data traffic consumed is 600M, can be calculated application program The data on flows that D was consumed in one hour is 43M.
Step S103, judges whether the current network state of terminal meets preparatory condition, if otherwise performing step S104, if It is then to terminate flow.
When not having WIFI, mobile device, which accesses network, to be needed to expend data traffic, and general user's data traffic is all limited System, either paid by flow or monthly have limit, more than amount or used excessive data traffic, may spend very More money.The application is exactly to solve the above problems, and the data traffic of protection user within a certain period of time is no more than limit.
Therefore, among an embodiment, the step of whether above-mentioned network state for judging that terminal is current meets preparatory condition It can specifically include:
Judge whether terminal currently connects WLAN (WIFI);
If not, it is determined that the current network state of terminal meets preparatory condition.
Step S104, obtain the pool of applications that terminal is currently run.
In one embodiment, obtaining the application program that terminal is currently run can be obtained by application identities, its In, application identities refer to the unique mark for the application installed in terminal, so as to be carried out with application of the application identities to terminal Identification.Specifically, in some possible embodiments of the invention, it can record what is opened when terminal is opened and applied Application identities.
Step S105, according to the data traffic that each application program consumes in the second preset time period in application program collection Be fated middle determination destination application, and closes the destination application.
, can be by the application program in above-mentioned pool of applications according in the second preset time period among an embodiment The data traffic of consumption is ranked up, and the application program of the higher predetermined number of data traffic consumption then is defined as into target Application program, and close.
In one embodiment, it is default application program that can also pre-set some important application programs, then First judge whether the destination application is default application program before destination application is closed, if it is not, then continuing executing with The step of closing destination application.It can so avoid closing the application program more important to user, so as to cause to miss Information data.Wherein, above-mentioned default application program can voluntarily be added by user and can also set automatically by system, the application couple This does not do further restriction.
In actual use, there may be the situation that the destination application is used in user, the mesh is now closed Mark application program may influence user's use, therefore can also generate a prompt message before the application program is closed and show In terminal screen, for example " whether closing XX applications " continues to close if user clicks on "Yes", stops if user clicks on "No" Only close the application program.
From the foregoing, it will be observed that the embodiment of the present application can obtain each application program among terminal in the first preset time period History use information, history use information include operation duration and the data traffic of consumption, are calculated according to history use information every The data traffic that individual application program consumes in the second preset time period, judges whether the current network state of terminal meets to preset Condition, if so, the pool of applications that terminal is currently run then is obtained, according to each application program in the second preset time period The data traffic of consumption determines destination application among pool of applications, and closes destination application.The application can With the data traffic service condition of application program in detection terminal, and consumption is closed when terminal network state meets preparatory condition The higher application program of flow, can improve flow control effect, avoid some further consumption data flows of application, Yi Miansheng Into unexpected a large amount of campus networks.
According to the description of a upper embodiment, illustrate the closing application program method of the application by further below.
Referring to Fig. 3, Fig. 3 is the schematic flow sheet for another closing application program method that the embodiment of the present application provides, In the present embodiment, Internet video download instruction can include multiple Internet videos, comprise the following steps:
Step S201, the history use information of each application program among terminal is obtained in the first preset time period, is gone through History use information includes operation duration and the data traffic of consumption.
In one embodiment, terminal can monitor the history use information of any application program, and the history use information can To be included in the operation duration in the past in the first preset time period and the data traffic of consumption, certainly, above-mentioned history uses letter Breath can also include other use informations of the application program, for example the number of starts, electricity for consuming etc..
Step S202, the data consumed according to each application program of history use information calculating in the second preset time period Flow.
In one embodiment, terminal can be to getting operation duration of the application program in the first preset time period and disappearing The flow of consumption carries out calculation process, such as can obtain the application program with flow value divided by operation duration and be consumed within the unit interval Flow.
For example application program A operation duration is 10 hours, and the data traffic consumed is 200M, can be calculated application The data on flows that program A was consumed in one hour is 20M;Application program B operation duration is 2 hours, and the data flow consumed Measure as 200M, can be calculated the data on flows that application program B was consumed in one hour is 100M;Application program C operation duration For 6 hours, and the data traffic consumed was 400M, and can be calculated the data on flows that application program C was consumed in one hour is 67M;Application program D operation duration is 14 hours, and the data traffic consumed is 600M, can be calculated application program D one The data on flows of consumption is 43M in hour.
Step S203, judges whether terminal currently connects WLAN, if step S204 is otherwise performed, if so, then Terminate flow
When not having WIFI, mobile device, which accesses network, to be needed to expend data traffic, and general user's data traffic is all limited System, either paid by flow or monthly have limit, more than amount or used excessive data traffic, may spend very More money.The application is exactly to solve the above problems, and the data traffic of protection user within a certain period of time is no more than limit.
Step S204, obtain the pool of applications that terminal is currently run.
In one embodiment, obtaining the application program that terminal is currently run can be obtained by application identities, its In, application identities refer to the unique mark for the application installed in terminal, so as to be carried out with application of the application identities to terminal Identification.Specifically, in some possible embodiments of the invention, it can record what is opened when terminal is opened and applied Application identities.
Step S205, obtain remaining data flow current in subscriber identification card corresponding to terminal.
For example mobile data network operator corresponding to terminal to SIM card (movement, UNICOM, telecommunications etc.) sends residue Flow obtains request, and the residual flow obtains request and carries user's mark, and carrier server is obtained according to residual flow and asked Residual flow corresponding to user mark is returned to user terminal.
Among other embodiment, generation remaining data flow can also be calculated by the traffic statistic function that terminal carries Information, such as the flow value used according to the currently used set meal flow summation of subscriber identification card and terminal calculate Obtain residual flow.
Step S206, the data traffic consumed according to each application program in the second preset time period is to using procedure set Application program in conjunction is ranked up, to obtain ranking results.
For example pool of applications includes A application programs, B application programs, C application programs and D application programs, wherein The data on flows that application program A was consumed in one hour is 20M, and the data on flows that application program B was consumed in one hour is 100M, the data on flows that application program C was consumed in one hour are 67M, the data on flows that application program D was consumed in one hour For 43M, thus according to be application program B after the order sequence of consumed flow value from big to small, application program C, application program D, Application program A.
Step S207, the quantity of destination application is determined according to remaining data flow.
Among an embodiment, terminal can preset multiple residual flow sections, and each residual flow section is right respectively A destination application quantitative value is answered, such as, quantitative value corresponding to residual flow 1M-200M sections is 3, residual flow Quantitative value corresponding to 201M-400M sections is 2, and quantitative value corresponding to residual flow 401M-500M sections is 1, if current residual Flow be 300M then corresponding destination application quantity is 2, wherein, above-mentioned section can by user according to actual conditions from Row setting, the application do not do further restriction to this.
Therefore, it is above-mentioned destination application is determined according to remaining data flow quantity the step of can specifically include:
Determine the default remaining data flow section where remaining data flow;
Obtain destination application quantity corresponding to default remaining data flow section.
Step S208, destination application is determined according to ranking results and quantity, and close destination application.
From the foregoing, it will be observed that the embodiment of the present application can obtain each application program among terminal in the first preset time period History use information, history use information include operation duration and the data traffic of consumption, are calculated according to history use information every The data traffic that individual application program consumes in the second preset time period, judges whether terminal currently connects WLAN, If otherwise obtaining the pool of applications that terminal is currently run, residue current in subscriber identification card corresponding to terminal is obtained Data traffic, according to the data traffic that each application program consumes in the second preset time period to answering in pool of applications It is ranked up with program, to obtain ranking results, the quantity of destination application is determined according to remaining data flow, according to sequence As a result destination application is determined with quantity, and closes destination application.The application can be with application program in detection terminal Data traffic service condition, and the higher application program of consumed flow is closed when terminal network state meets preparatory condition, can To improve flow control effect, some further consumption data flows of application are avoided, in order to avoid the unexpected a large amount of campus networks of generation.
For the ease of preferably implementing the closing application program method that the embodiment of the present application provides, the embodiment of the present application also carries A kind of device based on above-mentioned closing application program method is supplied.Wherein in the implication of noun and above-mentioned closing application program method Identical, specific implementation details may be referred to the explanation in embodiment of the method.
Referring to Fig. 4, Fig. 4 is a kind of structural representation for closing application program device that the embodiment of the present application provides, should Closing application program device 30 includes:Data obtaining module 301, computing module 302, judge module 303, set acquisition module 304 and closedown module 305;
Data obtaining module 301, for obtaining the history of each application program among terminal in the first preset time period Use information, the history use information include operation duration and the data traffic of consumption;
Computing module 302, for calculating each application program when second is default according to the history use information Between in section consumption data traffic;
Judge module 303, for judging whether the current network state of the terminal meets preparatory condition;
Gather acquisition module 304, for when the judge module 303 is judged as YES, obtaining the terminal and currently running Pool of applications;
Closedown module 305, for the data traffic consumed according to each application program in the second preset time period Destination application is determined among the pool of applications, and closes the destination application.
With continued reference to Fig. 5, among an embodiment, above-mentioned judge module 303 specifically includes:Judging submodule 3031 and really Stator modules 3032;
Judging submodule 3031, for judging whether terminal currently connects WLAN;
Determination sub-module 3032, for when judging submodule 3031 is judged as NO, determining the current network of the terminal State meets preparatory condition.
In one embodiment, described device 30 can also include:Flow acquisition module 306;
Flow acquisition module 306, for the closedown module 305 according to each application program when second is default Between before the data traffic of consumption determines destination application among the pool of applications in section, obtain the terminal-pair Current remaining data flow in the subscriber identification card answered;
Closedown module 305, is specifically used for, the data consumed according to each application program in the second preset time period Flow and the remaining data flow determine destination application among the pool of applications.
In one embodiment, closedown module 305 can specifically include:Sorting sub-module 3051, the first determination sub-module 3052 and second determination sub-module 3053;
Sorting sub-module 3051, for the data flow consumed according to each application program in the second preset time period Amount is ranked up to the application program in the pool of applications, to obtain ranking results;
First determination sub-module 3052, for determining the quantity of destination application according to the remaining data flow;
Second determination sub-module 3053, for determining the intended application journey according to the ranking results and the quantity Sequence.
From the foregoing, it will be observed that the closing application program device 30 that the embodiment of the present application provides can obtain in the first preset time period The history use information of each application program among terminal is taken, history use information includes operation duration and the data flow of consumption Amount, the data traffic consumed according to each application program of history use information calculating in the second preset time period, judges terminal Whether current network state meets preparatory condition, if so, the pool of applications that terminal is currently run then is obtained, according to each The data traffic that application program consumes in the second preset time period determines destination application among pool of applications, and Close destination application.The application can be with the data traffic service condition of application program in detection terminal, and in terminal network State meets to close consumed flow higher application program during preparatory condition, can improve flow control effect, avoid some answer With further consumption data flow, in order to avoid the unexpected a large amount of campus networks of generation.
The application also provides a kind of storage medium, is stored thereon with computer program, it is characterised in that the computer journey The closing application program method that implementation method embodiment provides when sequence is executed by processor.
The application also provides a kind of electronic equipment, including memory, and processor and storage on a memory and can handled The computer program run on device, it is characterised in that implementation method embodiment provides during the computing device described program Closing application program method.
A kind of electronic equipment is also provided in the another embodiment of the application, the electronic equipment can be smart mobile phone, flat board Apparatus such as computer.As shown in fig. 6, electronic equipment 400 includes processor 401, memory 402.Wherein, processor 401 and storage Device 402 is electrically connected with.
Processor 401 is the control centre of electronic equipment 400, utilizes various interfaces and the whole electronic equipment of connection Various pieces, by the application program of operation or load store in memory 402, and call and be stored in memory 402 Data, the various functions and processing data of electronic equipment are performed, so as to carry out integral monitoring to electronic equipment.
In the present embodiment, processor 401 in electronic equipment 400 can according to the steps, by one or one with On application program process corresponding to instruction be loaded into memory 402, and be stored in memory by processor 401 to run Application program in 402, so as to realize various functions:
The history use information of each application program among terminal is obtained in the first preset time period, the history uses Information includes operation duration and the data traffic of consumption;
The data that each application program consumes in the second preset time period are calculated according to the history use information Flow;
Judge whether the current network state of the terminal meets preparatory condition;
If so, then obtain the pool of applications that the terminal is currently run;
The data traffic consumed according to each application program in the second preset time period is in the application program collection Be fated middle determination destination application, and closes the destination application.
Referring to Fig. 7, Fig. 7 is the electronic devices structure schematic diagram that the embodiment of the present application provides.The electronic equipment 500 can be with Including radio frequency (RF, Radio Frequency) circuit 501, include one or more computer-readable recording mediums Memory 502, input block 503, display unit 504, sensor 504, voicefrequency circuit 506, Wireless Fidelity (WiFi, Wireless Fidelity) module 507, include one or the processor 508 and power supply of more than one processing core 509 grade parts.It will be understood by those skilled in the art that the electronic devices structure shown in Fig. 7 is not formed to electronic equipment Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Radio circuit 501 can be used for receive and send messages, or in communication process signal reception and transmission, especially, by base station Downlink information receive after, transfer to one or more than one processor 508 handled;In addition, sent up data are related to To base station.Generally, radio circuit 501 includes but is not limited to antenna, at least one amplifier, tuner, one or more vibrations Device, subscriber identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low noise amplification Device (LNA, Low Noise Amplifier), duplexer etc..In addition, radio circuit 501 can also pass through radio communication and network Communicated with other equipment.The radio communication can use any communication standard or agreement, including but not limited to global mobile communication System (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long Term Evolution), Email, Short Message Service (SMS, Short Messaging Service) etc..
Memory 502 can be used for storage application program and data.Include and can hold in the application program that memory 502 stores Line code.Application program can form various functions module.Processor 508 is stored in the application journey of memory 502 by operation Sequence, so as to perform various function application and data processing.Memory 502 can mainly include storing program area and data storage Area, wherein, storing program area can storage program area, needed at least one function application program (such as sound-playing function, Image player function etc.) etc.;Storage data field can store uses created data (such as audio number according to electronic equipment According to, phone directory etc.) etc..In addition, memory 502 can include high-speed random access memory, non-volatile deposit can also be included Reservoir, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 502 can also include Memory Controller, to provide the access of processor 508 and input block 503 to memory 502.
Input block 503 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and Keyboard, mouse, action bars, optics or the trace ball signal relevant with user's setting and function control is produced to input.Specifically Ground, in a specific embodiment, input block 503 may include touch sensitive surface and other input equipments.Touch sensitive surface, Referred to as touch display screen or Trackpad, collect user on or near it touch operation (such as user using finger, touch The operations of any suitable object or annex on touch sensitive surface or near touch sensitive surface such as pen), and according to set in advance Formula drives corresponding attachment means.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and the signal that touch operation is brought is detected, transmit a signal to touch Controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processing Device 508, and the order sent of reception processing device 508 and can be performed.
Display unit 504 can be used for display by the information of user's input or be supplied to the information and electronic equipment of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 504 may include display panel.Optionally, liquid crystal display (LCD, Liquid Crystal can be used Display), the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configures display surface Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects the touch operation on or near it, Processor 508 is sent to determine the type of touch event, is followed by subsequent processing device 508 according to the type of touch event in display panel It is upper that corresponding visual output is provided.Although in the figure 7, touch sensitive surface is realized with display panel is the part independent as two Input and input function, but it is in some embodiments it is possible to touch sensitive surface and display panel is integrated and realize and input and defeated Go out function.
Electronic equipment may also include at least one sensor 505, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel, and proximity transducer can close display surface when electronic equipment is moved in one's ear Plate and/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axles) The size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture is (such as vertical and horizontal Shield switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;As for electronics The other sensors such as gyroscope that equipment can also configure, barometer, hygrometer, thermometer, infrared ray sensor, it is no longer superfluous herein State.
Voicefrequency circuit 506 can provide the COBBAIF between user and electronic equipment by loudspeaker, microphone.Audio-frequency electric The voice data received can be converted into electric signal by road 506, be transferred to loudspeaker, and it is defeated to be converted to voice signal by loudspeaker Go out;On the other hand, the voice signal of collection is converted to electric signal by microphone, and audio is converted to after being received by voicefrequency circuit 506 Data, then after voice data output processor 508 is handled, through radio circuit 501 to be sent to such as another electronic equipment, or Person exports voice data to memory 502 further to handle.Voicefrequency circuit 506 is also possible that earphone jack, to carry For the communication of peripheral hardware earphone and electronic equipment.
Wireless Fidelity (WiFi) belongs to short range wireless transmission technology, and electronic equipment can be with by wireless fidelity module 507 Help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet Access.Although Fig. 7 shows wireless fidelity module 507, but it is understood that, it is simultaneously not belonging to the necessary structure of electronic equipment Into can be omitted as needed in the essential scope for do not change invention completely.
Processor 508 is the control centre of electronic equipment, utilizes each of various interfaces and the whole electronic equipment of connection Individual part, by running or performing the application program being stored in memory 502, and call and be stored in memory 502 Data, the various functions and processing data of electronic equipment are performed, so as to carry out integral monitoring to electronic equipment.Optionally, handle Device 508 may include one or more processing cores;Preferably, processor 508 can integrate application processor and modulation /demodulation processing Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 508.
Electronic equipment also includes the power supply 509 (such as battery) to all parts power supply.Preferably, power supply can pass through electricity Management system and processor 508 are logically contiguous, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 509 can also include one or more direct current or AC power, recharging system, power supply event The random component such as barrier detection circuit, power supply changeover device or inverter, power supply status indicator.
Although not shown in Fig. 7, electronic equipment can also include camera, bluetooth module etc., will not be repeated here.
It when it is implemented, above modules can be realized as independent entity, can also be combined, be made Realized for same or several entities, the specific implementation of above modules can be found in embodiment of the method above, herein not Repeat again.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are by program the hardware of correlation can be instructed to complete, and the program can be stored in computer-readable storage medium In matter, such as it is stored in the memory of terminal, and by least one computing device in the terminal, can wraps in the process of implementation Include the flow of the embodiment such as information issuing method.Wherein, storage medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
A kind of closing application program method, apparatus, storage medium and the electronic equipment provided above the embodiment of the present application It is described in detail, its each functional module can be integrated in a process chip or the independent physics of modules In the presence of, can also two or more modules be integrated in a module.Above-mentioned integrated module can both use hardware Form is realized, can also be realized in the form of software function module.Principle of the specific case to the application used herein And embodiment is set forth, the explanation of above example is only intended to help and understands that the present processes and its core are thought Think;Meanwhile for those skilled in the art, according to the thought of the application, can in specific embodiments and applications There is change part, in summary, this specification content should not be construed as the limitation to the application.

Claims (11)

  1. A kind of 1. closing application program method, it is characterised in that comprise the following steps:
    The history use information of each application program among terminal, the history use information are obtained in the first preset time period Data traffic including operation duration and consumption;
    The data traffic that each application program consumes in the second preset time period is calculated according to the history use information;
    Judge whether the current network state of the terminal meets preparatory condition;
    If so, then obtain the pool of applications that the terminal is currently run;
    Worked as according to the data traffic that each application program consumes in the second preset time period in the pool of applications Middle determination destination application, and close the destination application.
  2. 2. closing application program method as claimed in claim 1, it is characterised in that the network for judging that the terminal is current The step of whether state meets preparatory condition specifically includes:
    Judge whether the terminal currently connects WLAN;
    If not, it is determined that the current network state of the terminal meets preparatory condition.
  3. 3. closing application program method as claimed in claim 1, it is characterised in that according to each application program the Before the step of data traffic of consumption determines destination application among the pool of applications in two preset time periods, Methods described also includes:
    Obtain remaining data flow current in subscriber identification card corresponding to the terminal;
    The data traffic consumed according to each application program in the second preset time period is in the application program collection Be fated it is middle determination destination application the step of specifically include:
    The data traffic and the remaining data flow consumed according to each application program in the second preset time period exists Destination application is determined among the pool of applications.
  4. 4. closing application program method as claimed in claim 3, it is characterised in that described to be existed according to each application program The data traffic of consumption and the remaining data flow determine mesh among the pool of applications in second preset time period The step of marking application program specifically includes:
    The data traffic consumed according to each application program in the second preset time period is in the pool of applications Application program be ranked up, to obtain ranking results;
    The quantity of destination application is determined according to the remaining data flow;
    The destination application is determined according to the ranking results and the quantity.
  5. 5. closing application program method as claimed in claim 4, it is characterised in that described true according to the remaining data flow The step of quantity for the application program that sets the goal, specifically includes:
    Determine the default remaining data flow section where the remaining data flow;
    Obtain destination application quantity corresponding to the default remaining data flow section.
  6. A kind of 6. closing application program device, it is characterised in that including:Data obtaining module, computing module, judge module, collection Close acquisition module and closedown module;
    Described information acquisition module, the history for obtaining each application program among terminal in the first preset time period use Information, the history use information include operation duration and the data traffic of consumption;
    The computing module, for calculating each application program in the second preset time period according to the history use information The data traffic of interior consumption;
    The judge module, for judging whether the current network state of the terminal meets preparatory condition;
    The set acquisition module, for when the judge module is judged as YES, obtaining the application that the terminal is currently run Collection of programs;
    The closedown module, for the data traffic that is consumed according to each application program in the second preset time period in institute State and destination application is determined among pool of applications, and close the destination application.
  7. 7. closing application program device as claimed in claim 6, it is characterised in that the judge module specifically includes:Judge Submodule and determination sub-module;
    The judging submodule, for judging whether the terminal currently connects WLAN;
    The determination sub-module, for when the judging submodule is judged as NO, determining the current network state of the terminal Meet preparatory condition.
  8. 8. closing application program device as claimed in claim 6, it is characterised in that described device also includes:Flow obtains mould Block;
    The flow acquisition module, for the closedown module according to each application program in the second preset time period Before the data traffic of consumption determines destination application among the pool of applications, obtain and used corresponding to the terminal Current remaining data flow in the identification card of family;
    The closedown module, is specifically used for, the data flow consumed according to each application program in the second preset time period Amount and the remaining data flow determine destination application among the pool of applications.
  9. 9. closing application program device as claimed in claim 8, it is characterised in that the closedown module specifically includes:Sequence Submodule, the first determination sub-module and the second determination sub-module;
    The sorting sub-module, for the data traffic pair consumed according to each application program in the second preset time period Application program in the pool of applications is ranked up, to obtain ranking results;
    First determination sub-module, for determining the quantity of destination application according to the remaining data flow;
    Second determination sub-module, for determining the destination application according to the ranking results and the quantity.
  10. 10. a kind of storage medium, is stored thereon with computer program, it is characterised in that the computer program is held by processor Realized during row such as the step of any one of claim 1-5 methods described.
  11. 11. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor Machine program, it is characterised in that realized during the computing device described program such as the step of any one of claim 1-5 methods described Suddenly.
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 true CN107800651A (en) 2018-03-13
CN107800651B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616653A (en) * 2018-03-30 2018-10-02 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN109240790A (en) * 2018-09-21 2019-01-18 Oppo广东移动通信有限公司 A kind of multi-window management method, system and android terminal
CN109348041A (en) * 2018-08-13 2019-02-15 珠海格力电器股份有限公司 A kind of application program networking control method, device, storage medium and terminal
CN110445924A (en) * 2019-06-26 2019-11-12 维沃移动通信有限公司 Network task executes method and terminal device

Citations (10)

* 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
CN103209439A (en) * 2013-03-14 2013-07-17 北京小米科技有限责任公司 Method, apparatus and device for monitoring 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
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
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

Patent Citations (10)

* 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
CN103209439A (en) * 2013-03-14 2013-07-17 北京小米科技有限责任公司 Method, apparatus and device for monitoring 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
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
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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616653A (en) * 2018-03-30 2018-10-02 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal and computer readable storage medium
CN109348041A (en) * 2018-08-13 2019-02-15 珠海格力电器股份有限公司 A kind of application program networking control method, device, storage medium and terminal
CN109240790A (en) * 2018-09-21 2019-01-18 Oppo广东移动通信有限公司 A kind of multi-window management method, system and android terminal
CN110445924A (en) * 2019-06-26 2019-11-12 维沃移动通信有限公司 Network task executes method and terminal device

Also Published As

Publication number Publication date
CN107800651B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN104519485B (en) Communication means, device and system between a kind of terminal
CN103473092B (en) A kind of download the processing method of application, device and terminal unit
CN107800651A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN107102864A (en) One kind puts out screen control method, device, storage medium and terminal
CN103455603B (en) Web page contents caching, webpage loading method, device and terminal unit
CN104123276B (en) The hold-up interception method of pop-up, device and system in a kind of browser
CN106453511B (en) A kind of data back up method and equipment
CN108430101A (en) Antenna method for closing, device, storage medium and electronic equipment
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN108494957A (en) Antenna switching method, device, storage medium and electronic equipment
CN107219951A (en) Touch screen control method, device, storage medium and terminal device
CN106775828A (en) Application program installation method and device, computer equipment
CN106786962A (en) Charge control method, device and terminal
CN107734616A (en) Closing application program method, apparatus, storage medium and electronic equipment
CN106786961A (en) Charging process method, device and terminal
CN108549519A (en) split screen processing method, device, storage medium and electronic equipment
CN108932094A (en) Split screen application switching method, device, storage medium and electronic equipment
CN109062468A (en) Multi-screen display method, device, storage medium and electronic equipment
CN108984064A (en) Multi-screen display method, device, storage medium and electronic equipment
CN106358225B (en) A kind of processing method of network data, device and mobile terminal
CN106535249A (en) Control method and control device for wireless local area networks, and terminal
CN108958629A (en) Split screen exits method, apparatus, storage medium and electronic equipment
CN108958606A (en) Multi-screen display method, device, storage medium and electronic equipment
CN106658615B (en) A kind of method and device switching communication network
CN107272991A (en) Method for information display and Related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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