CN106102143B - Application processing method and device - Google Patents

Application processing method and device Download PDF

Info

Publication number
CN106102143B
CN106102143B CN201610383694.0A CN201610383694A CN106102143B CN 106102143 B CN106102143 B CN 106102143B CN 201610383694 A CN201610383694 A CN 201610383694A CN 106102143 B CN106102143 B CN 106102143B
Authority
CN
China
Prior art keywords
network
preset
network quality
receiving
parameter
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
CN201610383694.0A
Other languages
Chinese (zh)
Other versions
CN106102143A (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 CN201610383694.0A priority Critical patent/CN106102143B/en
Publication of CN106102143A publication Critical patent/CN106102143A/en
Priority to PCT/CN2017/086480 priority patent/WO2017206883A1/en
Application granted granted Critical
Publication of CN106102143B publication Critical patent/CN106102143B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/08Current supply arrangements for telephone systems with current supply sources at the substations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses an application processing method and a device, wherein the method comprises the steps of receiving a parameter acquisition request when the device is in a standby state and is connected with a network, then acquiring a network quality parameter corresponding to the network according to the parameter acquisition request, judging whether the network quality parameter meets a preset condition, and if so, closing a target application which is running and uses the network; the scheme can close a target application which is running and using the network based on the network quality parameter of the current connection network; the scheme can reduce the power consumption of the terminal and the electric quantity consumption of the terminal.

Description

Application processing method and device
Technical Field
The invention relates to the technical field of terminals, in particular to an application processing method and device.
Background
Along with the development of the intelligent terminal, the intelligent terminal has more and more functions which can be compatible with each other, so that the life of a user is enriched, and convenience is brought to the user. With the increasingly integrated life and the improved application functions of mobile terminal equipment, great convenience is brought to users and the user experience is improved.
In order to implement various functions to meet various needs of users, a smart terminal typically installs various application programs (which may be simply referred to as applications). When the intelligent terminal is in a standby state, some application programs continue to run in the background and need to be connected with the corresponding servers; however, if the network quality of the current connection of the intelligent terminal changes, for example, the network quality becomes poor or becomes low, the intelligent terminal frequently performs the network disconnection and reconnection operation (i.e., the operation of disconnecting the network connection and reestablishing the network connection), and at this time, some applications (e.g., applications using the network) running in the background may reinitiate the connection to its network server after the network connection is restored; therefore, some application programs running in the background frequently disconnect and reconnect with the network and also frequently initiate connection to the network server, and at this time, the application programs consume a large amount of CPU resources in the background, which results in high power consumption of the intelligent terminal and high power consumption of the intelligent terminal.
Disclosure of Invention
The embodiment of the invention provides an application processing method and device, which can reduce the power consumption of an intelligent terminal.
The embodiment of the invention provides an application processing method, which comprises the following steps:
receiving a parameter acquisition request when the mobile terminal is in a standby state and is connected with a network;
acquiring a network quality parameter corresponding to the network according to the parameter acquisition request;
judging whether the network quality parameters meet preset conditions or not;
if so, closing the target application which is running and using the network.
Preferably, the step of obtaining the network quality parameter corresponding to the network according to the parameter obtaining request specifically includes:
acquiring operation information aiming at network connection in a preset time period according to the parameter acquisition request, wherein the network connection is the network connection with the network;
and acquiring the network quality parameters corresponding to the network according to the operation information.
Preferably, the operation information includes: a disconnect frequency to disconnect the network connection and a connect frequency to reestablish the network connection;
the step of obtaining the network quality parameter corresponding to the network according to the operation information specifically includes:
acquiring a first comparison result between the disconnection frequency and a first preset frequency and a second comparison result between the connection frequency and a second preset frequency;
and acquiring a network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
Preferably, the step of obtaining the network quality parameter corresponding to the network according to the parameter obtaining request specifically includes:
sending heartbeat packets to corresponding servers at intervals of a preset duration according to the parameter acquisition request;
receiving a response packet returned by the server and used for responding to the heartbeat packet;
acquiring the sending number of the heartbeat packets and the receiving number of the response packets in a preset time period;
and acquiring the network quality parameters corresponding to the network according to the sending quantity and the receiving quantity.
Preferably, the step of obtaining the network quality parameter corresponding to the network according to the sending number and the receiving number specifically includes:
obtaining a quantity difference between the sending quantity and the receiving quantity;
obtaining a comparison result between the quantity difference and a first preset threshold value;
and acquiring the network quality parameters corresponding to the network according to the comparison result.
Preferably, the step of closing the target application which is running and using the network specifically includes:
selecting corresponding applications from the applications running in the background according to a preset application identification set to serve as target applications needing to be closed;
and closing the target application.
Preferably, the step of judging whether the network quality parameter meets a preset condition specifically includes:
judging whether a parameter value corresponding to the network quality parameter is larger than a second preset threshold value or not;
if so, judging that the network quality parameter meets a preset condition;
if not, judging that the network quality parameter does not meet the preset condition.
Correspondingly, an embodiment of the present invention further provides an application processing apparatus, including: the device comprises a receiving module, an obtaining module, a judging module and a closing module;
the receiving module is used for receiving a parameter acquisition request when the receiving module is in a standby state and is connected with a network;
the acquisition module is used for acquiring the network quality parameters corresponding to the network according to the parameter acquisition request;
the judging module is used for judging whether the network quality parameters meet preset conditions or not;
and the closing module is used for closing the target application which is running and uses the network when the judgment module judges that the target application is yes.
Preferably, the obtaining module is specifically configured to obtain, according to the parameter obtaining request, operation information for network connection in a preset time period, where the network connection is a network connection with the network; and acquiring the network quality parameters corresponding to the network according to the operation information.
Preferably, the acquiring module specifically includes: the device comprises a sending submodule, a receiving submodule and an obtaining submodule;
the sending submodule is used for sending heartbeat packets to corresponding servers at intervals of a preset duration according to the parameter acquisition request;
the receiving submodule is used for receiving a response packet which is returned by the server and used for responding to the heartbeat packet;
the obtaining submodule is used for obtaining the sending number of the heartbeat packets and the receiving number of the response packets in a preset time period; and acquiring the network quality parameters corresponding to the network according to the sending quantity and the receiving quantity.
Preferably, the closing module is specifically configured to select a corresponding application from applications running in the background according to a preset application identifier set, so as to serve as a target application to be closed; and closing the target application.
Preferably, the determining module is specifically configured to determine whether a parameter value corresponding to the network quality parameter is greater than a second preset threshold; if so, judging that the network quality parameter meets a preset condition; if not, judging that the network quality parameter does not meet the preset condition.
The embodiment of the invention receives a parameter acquisition request when the device is in a standby state and is connected with a network, then acquires a network quality parameter corresponding to the network according to the parameter acquisition request, judges whether the network quality parameter meets a preset condition or not, and closes a target application which is running and uses the network if the network quality parameter meets the preset condition; the scheme can close a target application which is running and using the network based on the network quality parameter of the current connection network; for example, when the network quality parameter indicates that the network quality is poor, the target application running and using the network may be closed, and the scheme may avoid a situation that the application program frequently initiates a connection to its network server when the network quality is poor, so that resource consumption of the application program may be reduced, and compared with the prior art, power consumption of the terminal and power consumption of the terminal may be reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an application processing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an application processing method according to a second embodiment of the present invention;
fig. 3a is a schematic structural diagram of a first application processing apparatus according to a third embodiment of the present invention;
fig. 3b is a schematic structural diagram of a second application processing apparatus according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an application processing method and device. The details will be described below separately.
The first embodiment,
The embodiment will be described from the perspective of an application processing apparatus, which may be specifically integrated in a terminal, where the terminal may be a smart phone, a tablet computer, or the like.
An application processing method, comprising: when the mobile terminal is in a standby state and is connected with a network, a parameter acquisition request is received, then, a network quality parameter corresponding to the network is acquired according to the parameter acquisition request, whether the network quality parameter meets a preset condition or not is judged, and if yes, a target application which is running and uses the network is closed.
As shown in fig. 1, the specific flow of the application processing method may be as follows:
101. and receiving a parameter acquisition request when the mobile terminal is in a standby state and is connected with a network.
Specifically, the standby state is also a screen-contacted state, and a network connected to the terminal may be a data network (such as a 3G network, a 4G network, and the like) or a wireless WiFi network, and the present invention is not limited to this specifically, wherein the method for receiving the parameter acquisition request may be various, and the method may be that the terminal triggers the terminal to receive the parameter acquisition request, or the server triggers the terminal to receive the parameter acquisition request; for example, a timer may be integrated in the terminal, the timer may be integrated in the terminal in an APP manner, the terminal is triggered to receive the parameter acquisition request every preset time period, the preset time period may be set according to an actual requirement, for example, the preset time period may be set to 1min, 10min, and the like, that is, the step "receiving the parameter acquisition request when in a standby state and connecting to a network" may specifically include:
and when the terminal is in a screen-off state and is connected with the network, receiving a parameter acquisition request at regular time.
102. And acquiring the network quality parameters corresponding to the network according to the parameter acquisition request.
In the embodiment of the present invention, the network quality parameter may be a parameter indicating the current network connection quality of the terminal, for example, the larger the network quality parameter value is, the better the network connection quality is, or the smaller the network quality parameter value is, the better the network connection quality is; the network Quality parameter may be a plurality of parameters, for example, the network Quality parameter may be a key index (e.g., throughput, delay, etc.) of QoS (Quality of Service), or a parameter obtained based on a key index of QoS, or a user-defined network Quality parameter, for example, a user-defined network Quality parameter obtained according to the performance of the currently connected network and terminal device.
For example, based on factors such as a network access mode, a network coverage area, and a network signal strength, operation information such as disconnection, connection, and the like generated in a process of connecting with the network may be generated to obtain the network quality parameter, that is, the step "obtaining the network quality parameter corresponding to the network according to the parameter obtaining request" may specifically include the following steps:
acquiring operation information aiming at network connection in a preset time period according to the parameter acquisition request, wherein the network connection is the network connection with the network;
and acquiring the network quality parameters corresponding to the network according to the operation information.
In this embodiment of the present invention, the operation information may be a disconnection frequency of the terminal disconnecting from the network, or a connection frequency of reestablishing network connection with the network after the network is disconnected, that is, the operation information may include: the frequency of disconnection of the network connection and the frequency of connection of the network connection reestablishment. The disconnection frequency and the connection frequency may be average frequencies in a period of time, or may be the number of times of network disconnection and the number of times of network connection in a unit time.
Specifically, there are various ways to obtain the network quality parameter corresponding to the network according to the operation information, for example, the operation information may be directly used as the network quality parameter;
optionally, in order to improve the accuracy of the network quality parameter, the network quality parameter may be obtained based on the operation information, that is, the specific process of "obtaining the network quality parameter corresponding to the network according to the operation information" in the above step may be as follows:
obtaining a first comparison result between the disconnection frequency and a first preset frequency and a second comparison result between the connection frequency and a second preset frequency;
and acquiring the network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
The first preset frequency can be a standard value which is obtained through a plurality of experimental tests and is used for measuring the disconnection frequency of the terminal for disconnecting the network connection, and can also be a numerical value which is set by a user according to actual conditions such as user requirements, the performance of terminal equipment and the like; similarly, the second preset frequency may be a standard value obtained through a plurality of experimental tests and used for measuring the connection frequency of the terminal for reestablishing the network connection, or may be a value set by the user according to actual conditions such as user requirements and the performance of the terminal device.
In a specific implementation process, the first comparison result may be obtained based on a disconnection frequency difference between the disconnection frequency and a first preset frequency, or may be obtained by determining a comparison between the disconnection frequency and the first preset frequency; likewise, the first comparison result may be obtained based on a connection frequency difference between the connection frequency and the second preset frequency, or may be obtained by determining a value comparison between the connection frequency and the second preset frequency.
When the network quality parameter corresponding to the network is obtained according to the first comparison result and the second comparison result, the obtaining mode may be various, for example, the first comparison result and the second comparison result may be balanced, one having a larger influence on the network quality parameter is selected as a reference for obtaining the network quality parameter, and then the corresponding network quality parameter is converted by a preset algorithm or rule; or the first comparison result and the second comparison result can be combined to be synthesized as a reference for acquiring the network quality parameter, and then the corresponding network quality parameter is converted by a preset algorithm or rule.
Alternatively, the current network connection state may be tested by sending a probe signal (such as a heartbeat packet) to the server, and the network quality parameter may be obtained according to a response result of the server, that is, a specific flow of the step "obtaining the network quality parameter corresponding to the network according to the operation information" may be as follows:
sending heartbeat packets to corresponding servers at intervals of a preset time length according to the parameter acquisition request;
receiving a response packet returned by the server and used for responding to the heartbeat packet;
acquiring the sending number of heartbeat packets and the receiving number of response packets in a preset time period;
and acquiring network quality parameters corresponding to the network according to the sending quantity and the receiving quantity.
In the embodiment of the present invention, the received number of the response packets returned by the server may be directly used as the network quality parameter.
Preferably, in order to improve the accuracy of the network quality parameter, the network quality parameter may be obtained based on a quantity difference between the sending quantity of the heartbeat packets and the receiving quantity of the response packets, that is, the step "obtaining the network quality parameter corresponding to the network according to the sending quantity and the receiving quantity" may specifically include:
acquiring a quantity difference between the sending quantity and the receiving quantity;
obtaining a comparison result between the quantity difference and a first preset threshold value;
and acquiring the network quality parameters corresponding to the network according to the comparison result.
Specifically, the first preset threshold may be a standard value obtained through multiple experimental tests and used for measuring a magnitude of a quantity difference between a sending quantity of the heartbeat packets and a receiving quantity of the response packets, and after a comparison result is obtained, a corresponding network quality parameter may be converted through a preset algorithm or rule.
103. Judging whether the network quality parameter meets a preset condition; if yes, go to step 104, otherwise, end the process.
Specifically, the preset condition may be a condition for measuring the quality of the network, and the preset condition may be compared with a preset second preset threshold to determine whether the network quality parameter meets the preset condition, where the second preset threshold may be set according to an actual requirement; that is, the step of "determining whether the network quality parameter satisfies the preset condition" may specifically include:
judging whether the parameter value corresponding to the network quality parameter is larger than a second preset threshold value or not;
if so, judging that the network quality parameters meet preset conditions;
if not, judging that the network quality parameters do not meet the preset conditions.
In practical application, when the network quality parameter is judged to meet the preset condition, the network quality can be determined to be poor, and when the network quality parameter is judged to not meet the preset condition, the network quality can be determined to be good.
104. The target application that is running and using the network is shut down.
Specifically, when the network quality parameter is judged to meet the preset condition (namely the network quality is poor), the target application which is running and uses the network is closed, for the sake of more humanization of the scheme, an application which can be automatically processed can be set by a user as a target, and whether the application is closed or not is determined by judging whether the application running in the background which is currently connected with the network is the target application or not, so as to avoid the problem of error processing; that is, the step of "closing the target application that is running and using the network" may specifically include:
selecting corresponding applications from the applications running in the background according to a preset application identification set to serve as target applications needing to be closed;
the target application is closed.
In the specific implementation process, a selected space can be provided for a user, and an application processing mechanism is added for processing the application running in the background when the network quality is poor; for example, the application processing mechanism may be integrated in the terminal in the form of APP, and may provide an interface that a user can edit, and may list applications installed in all mobile terminals, and the user may select whether to authorize the system, add the authorized application as a preset application to a preset application identifier set, and when the network quality is poor, if it is detected that an application that is the same as the preset application set exists in the background, may use the application as a target application, and automatically perform a closing process.
As can be seen from the above, an embodiment of the present invention provides an application processing method, which receives a parameter obtaining request when the application is in a standby state and is connected to a network, then obtains a network quality parameter corresponding to the network according to the parameter obtaining request, and determines whether the network quality parameter meets a preset condition, if so, closes a target application that is running and using the network; the scheme can close a target application which is running and using the network based on the network quality parameter of the current connection network; for example, when the network quality parameter indicates that the network quality is poor, the target application running and using the network may be closed, and the scheme may avoid a situation that the application program frequently initiates a connection to its network server when the network quality is poor, so that resource consumption of the application program may be reduced, and compared with the prior art, power consumption of the terminal and power consumption of the terminal may be reduced.
Example II,
The method described in the first embodiment is further illustrated by way of example.
In this embodiment, a detailed description will be given by taking an example in which the application processing apparatus is specifically integrated in a mobile terminal.
As shown in fig. 2, a specific flow of an application processing method may be as follows:
201. and receiving a parameter acquisition request when the mobile terminal is in a standby state and is connected with a network.
Specifically, the network to which the mobile terminal is connected may be a data network such as 3G, 4G, or the like, or may also be a wireless WiFi network or a WiFi hotspot, and the present invention is not limited to this specifically.
The method for receiving the parameter obtaining request may be various, for example, a timer may be integrated in the mobile terminal, the timer may be integrated in the terminal in an APP manner, the terminal is triggered to receive the parameter obtaining request every preset time period, the preset time period may be set according to actual requirements, for example, the preset time period may be set to 1min, 10min, and the like, that is, "receiving the parameter obtaining request when being in a standby state and connecting to a network" may specifically include:
and when the mobile terminal is in a screen-off state and is connected with a network, receiving a parameter acquisition request at regular time.
202. And the mobile terminal acquires the network quality parameters corresponding to the network according to the parameter acquisition request.
In the embodiment of the present invention, the network quality parameter may be a parameter indicating the current network connection quality of the terminal, for example, a smaller network quality parameter value indicates a better network connection quality; the network Quality parameter may be a plurality of parameters, for example, the network Quality parameter may be a key index (e.g., throughput, delay, etc.) of QoS (Quality of Service), or a parameter obtained based on a key index of QoS, or a user-defined network Quality parameter, for example, a user-defined network Quality parameter obtained according to the performance of the currently connected network and terminal device. .
Specifically, when the network quality parameter corresponding to the network is obtained, operation information for network connection in a preset time period may be obtained according to the parameter obtaining request, where the network connection is a network connection with the network, and then the network quality parameter corresponding to the network is obtained according to the operation information, where the operation information may include a disconnection frequency for disconnecting the network connection and a connection frequency for reestablishing the network connection.
Preferably, the network quality parameter may be obtained based on the operation information, that is, the specific flow of the step "obtaining the network quality parameter corresponding to the network according to the operation information" may be as follows:
obtaining a first comparison result between the disconnection frequency and a first preset frequency and a second comparison result between the connection frequency and a second preset frequency;
and acquiring the network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
The first preset frequency may be a standard value for measuring a disconnection frequency of the terminal for disconnecting the network connection through a plurality of experimental tests, and similarly, the second preset frequency may be a standard value for measuring a connection frequency of the terminal for reestablishing the network connection through a plurality of experimental tests.
In a specific implementation, the first comparison result may be obtained based on a disconnection frequency difference between the disconnection frequency and a first preset frequency, and similarly, the first comparison result may be obtained based on a connection frequency difference between the connection frequency and a second preset frequency. When the network quality parameter corresponding to the network is obtained according to the first comparison result and the second comparison result, one can combine the first comparison result and the second comparison result to be used as a reference for obtaining the network quality parameter, and then convert the corresponding network quality parameter by a preset algorithm or rule.
203. The mobile terminal judges whether a parameter value corresponding to the network quality parameter is greater than a preset threshold value; if yes, go to step 204, otherwise, end the process.
In practical application, the preset threshold value can be used as a condition for measuring the quality of the network, and the preset threshold value can be set according to actual requirements; when the network quality parameter is judged to be larger than the preset threshold value, the network quality can be determined to be poor, otherwise, the network quality can be determined to be good.
204. And the mobile terminal selects a corresponding application from the applications running in the background according to the preset application identification set to serve as a target application needing to be closed.
Specifically, when the network quality parameter is judged to meet the preset condition (namely, the network quality is poor), the target application which is running and uses the network is closed, for the purpose of more humanization, an application which can be automatically processed can be set by a user as a target, and whether the application is closed or not is determined by judging whether the application running in the background which is currently connected with the network is the target application or not, so as to avoid the problem of error processing.
For example, an application processing mechanism may be integrated in the mobile terminal in the form of APP, which may provide an interface that a user may edit, may list applications installed in all mobile terminals, and the user may select whether to authorize the system, and use the authorized application as the target application.
205. The mobile terminal closes the target application.
Specifically, closing the target application may specifically be represented by completely killing the application, and may also end the process tree corresponding to the application in addition to ending the process of the application.
As can be seen from the above, an embodiment of the present invention provides an application processing method, where a parameter obtaining request is received when a mobile terminal is in a standby state and is connected to a network, then a network quality parameter corresponding to the network is obtained according to the parameter obtaining request, and whether a parameter value corresponding to the network quality parameter is greater than a preset threshold is determined, if yes, a corresponding application is selected from applications running in a background according to a preset application identifier set to serve as a target application to be closed, and the target application is closed; the scheme can close a target application which is running and using the network based on the network quality parameter of the current connection network; for example, when the network quality parameter indicates that the network quality is poor, the target application running and using the network may be closed, and the scheme may avoid a situation that the application program frequently initiates a connection to its network server when the network quality is poor, so that resource consumption of the application program may be reduced, and compared with the prior art, power consumption of the terminal and power consumption of the terminal may be reduced.
Example III,
In order to better implement the method, an embodiment of the present invention further provides an application processing apparatus, where the application processing apparatus may be integrated in a terminal, and the terminal may specifically include a mobile phone, a tablet computer, a notebook computer, and other devices. As shown in fig. 3a, the application processing apparatus may include: the receiving module 301, the obtaining module 302, the judging module 303 and the closing module 304 are as follows:
the receiving module 301 is configured to receive a parameter obtaining request when the receiving module is in a standby state and is connected to a network;
the obtaining module 302 is configured to obtain a network quality parameter corresponding to the network according to the parameter obtaining request;
the judging module 303 is configured to judge whether the network quality parameter meets a preset condition;
the closing module 304 is configured to close the target application that is running and using the network when the determining module 303 determines yes.
Preferably, the obtaining module 302 is specifically configured to obtain, according to the parameter obtaining request, operation information for network connection in a preset time period, where the network connection is a network connection with the network; and acquiring the network quality parameters corresponding to the network according to the operation information.
Preferably, as shown in fig. 3b, the obtaining module 302 specifically includes: a sending submodule 3021, a receiving submodule 3022, and an obtaining submodule 3023;
the sending submodule 3021 is configured to send heartbeat packets to a corresponding server every preset time period according to the parameter acquisition request;
the receiving submodule 3022 is configured to receive a response packet returned by the server and used for responding to the heartbeat packet;
the obtaining submodule 3023 is configured to obtain the sending number of the heartbeat packets and the receiving number of the response packets in a preset time period; and acquiring the network quality parameters corresponding to the network according to the sending quantity and the receiving quantity.
Preferably, the closing module 304 is specifically configured to select a corresponding application from applications running in the background according to a preset application identifier set, so as to serve as a target application to be closed; the target application is closed.
Preferably, the determining module 303 is specifically configured to determine whether a parameter value corresponding to the network quality parameter is greater than a second preset threshold; if so, judging that the network quality parameter meets a preset condition; if not, judging that the network quality parameter does not meet the preset condition.
As can be seen from the above, in the application processing apparatus provided in the embodiment of the present invention, when the application processing apparatus is in a standby state and is connected to a network, the receiving module 301 receives a parameter obtaining request, the obtaining module 302 obtains a network quality parameter corresponding to the network according to the parameter obtaining request, the determining module 303 determines whether the network quality parameter meets a preset condition, and if so, the closing module 304 closes a target application that is running and using the network; the scheme can close a target application which is running and using the network based on the network quality parameter of the current connection network; for example, when the network quality parameter indicates that the network quality is poor, the target application running and using the network may be closed, and the scheme may avoid a situation that the application program frequently initiates a connection to its network server when the network quality is poor, so that resource consumption of the application program may be reduced, and compared with the prior art, power consumption of the terminal and power consumption of the terminal may be reduced.
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.
The application processing method and apparatus provided in the embodiments of the present invention are described in detail above, 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 principles and embodiments of the present invention have been described herein using specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (11)

1. An application processing method, comprising:
when the mobile terminal is in a screen extinguishing state and is connected with a network, receiving a parameter acquisition request at regular intervals of a preset time period;
acquiring a disconnection frequency for disconnecting the network connection and a connection frequency for reestablishing the network connection within a preset time period according to the parameter acquisition request, and acquiring a network quality parameter corresponding to the network according to the disconnection frequency and the connection frequency;
or sending heartbeat packets to corresponding servers at intervals of preset time, receiving response packets responded by the servers, and acquiring network quality parameters corresponding to the network according to the heartbeat packets and the response packets;
judging whether the network quality parameter meets a preset condition, wherein the preset condition is used for measuring the quality of the network;
if so, closing the target application which is running and using the network.
2. The application processing method according to claim 1, wherein the step of obtaining, according to the parameter obtaining request, a disconnection frequency at which the network connection is disconnected within a preset time period and a connection frequency at which the network connection is reestablished, and the step of obtaining, according to the disconnection frequency and the connection frequency, a network quality parameter corresponding to the network comprises:
acquiring disconnection frequency for disconnecting the network connection and connection frequency for reestablishing the network connection within a preset time period according to the parameter acquisition request;
acquiring a first comparison result between the disconnection frequency and a first preset frequency and a second comparison result between the connection frequency and a second preset frequency;
and acquiring a network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
3. The application processing method according to claim 1, wherein the step of sending a heartbeat packet to a corresponding server every preset duration and receiving a response packet responded by the server according to the heartbeat packet and the response packet comprises:
sending heartbeat packets to corresponding servers at intervals of a preset duration according to the parameter acquisition request;
receiving a response packet returned by the server and used for responding to the heartbeat packet;
acquiring the sending number of the heartbeat packets and the receiving number of the response packets in a preset time period;
and acquiring the network quality parameters corresponding to the network according to the sending quantity and the receiving quantity.
4. The application processing method of claim 3, wherein the step of obtaining the network quality parameter corresponding to the network according to the sending quantity and the receiving quantity comprises:
obtaining a quantity difference between the sending quantity and the receiving quantity;
obtaining a comparison result between the quantity difference and a first preset threshold;
and acquiring the network quality parameters corresponding to the network according to the comparison result.
5. The application processing method of claim 1, wherein the step of shutting down a target application that is running and using the network comprises:
selecting corresponding applications from the applications running in the background according to a preset application identification set to serve as target applications needing to be closed;
and closing the target application.
6. The application processing method of claim 1, wherein the step of determining whether the network quality parameter satisfies a preset condition comprises:
judging whether a parameter value corresponding to the network quality parameter is larger than a second preset threshold value or not;
if so, judging that the network quality parameter meets a preset condition;
if not, judging that the network quality parameter does not meet the preset condition.
7. An application processing apparatus, comprising: the device comprises a receiving module, an obtaining module, a judging module and a closing module;
the receiving module is used for receiving the parameter acquisition request at regular intervals of a preset time period when the receiving module is in a screen-off state and is connected with a network;
the acquisition module is used for acquiring disconnection frequency for disconnecting the network connection and connection frequency for reestablishing the network connection within a preset time period according to the parameter acquisition request, and acquiring network quality parameters corresponding to the network according to the disconnection frequency and the connection frequency; or sending heartbeat packets to corresponding servers at intervals of preset time, receiving response packets responded by the servers, and acquiring network quality parameters corresponding to the network according to the heartbeat packets and the response packets;
the judging module is used for judging whether the network quality parameter meets a preset condition, wherein the preset condition is used for measuring the quality of the network;
and the closing module is used for closing the target application which is running and uses the network when the judgment module judges that the target application is yes.
8. The application processing apparatus of claim 7, wherein the acquisition module comprises: the device comprises a sending submodule, a receiving submodule and an obtaining submodule;
the sending submodule is used for sending heartbeat packets to corresponding servers at intervals of a preset duration according to the parameter acquisition request;
the receiving submodule is used for receiving a response packet which is returned by the server and used for responding to the heartbeat packet;
the obtaining submodule is used for obtaining the sending number of the heartbeat packets and the receiving number of the response packets in a preset time period; and acquiring the network quality parameters corresponding to the network according to the sending quantity and the receiving quantity.
9. The application processing apparatus according to claim 7, wherein the closing module is configured to select a corresponding application from applications running in the background according to a preset application identification set, to serve as a target application to be closed, and to close the target application.
10. The application processing apparatus according to claim 7, wherein the determining module is configured to determine whether a parameter value corresponding to the network quality parameter is greater than a second preset threshold; if so, judging that the network quality parameter meets a preset condition; if not, judging that the network quality parameter does not meet the preset condition.
11. A computer-readable storage medium, on which a computer program is stored, which is loaded by a processor to perform the method according to any of claims 1 to 6.
CN201610383694.0A 2016-05-31 2016-05-31 Application processing method and device Active CN106102143B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610383694.0A CN106102143B (en) 2016-05-31 2016-05-31 Application processing method and device
PCT/CN2017/086480 WO2017206883A1 (en) 2016-05-31 2017-05-29 Application processing method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610383694.0A CN106102143B (en) 2016-05-31 2016-05-31 Application processing method and device

Publications (2)

Publication Number Publication Date
CN106102143A CN106102143A (en) 2016-11-09
CN106102143B true CN106102143B (en) 2020-01-14

Family

ID=57447405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610383694.0A Active CN106102143B (en) 2016-05-31 2016-05-31 Application processing method and device

Country Status (2)

Country Link
CN (1) CN106102143B (en)
WO (1) WO2017206883A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106102143B (en) * 2016-05-31 2020-01-14 Oppo广东移动通信有限公司 Application processing method and device
CN107182110A (en) * 2017-04-07 2017-09-19 北京安云世纪科技有限公司 It is a kind of to reduce the method, device and mobile terminal of power consumption
CN110245076A (en) * 2019-05-21 2019-09-17 深圳壹账通智能科技有限公司 Method, apparatus and terminal device are determined based on the factor influence degree of functional test
CN112153210B (en) * 2019-06-28 2022-03-29 北京智明星通科技股份有限公司 Automatic closing method and system of game APP
CN110381376B (en) * 2019-07-09 2022-08-02 青岛海信传媒网络技术有限公司 Application processing method and device and terminal
CN112533268B (en) * 2019-09-17 2023-04-11 海信电子科技(深圳)有限公司 Terminal and processing method thereof
CN110768903A (en) * 2019-10-28 2020-02-07 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for optimizing network connection
CN110913424B (en) * 2019-11-14 2022-04-22 华为技术有限公司 Network connection control method and device, terminal and computer storage medium
CN111064788B (en) * 2019-12-18 2022-12-06 达闼机器人股份有限公司 Signal transmission method, robot, and computer-readable storage medium
CN114727360A (en) * 2020-12-22 2022-07-08 深圳Tcl新技术有限公司 Network connection equipment management method, device, terminal equipment and storage medium
CN113259759A (en) * 2021-05-20 2021-08-13 深圳市雷鸟网络传媒有限公司 Network connection state evaluation method and device, terminal equipment and storage medium
CN114173390B (en) * 2021-12-06 2024-01-19 深圳Tcl新技术有限公司 Network control method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917516A (en) * 2010-08-16 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Power-saving processing method and system for mobile terminal, and mobile terminal
CN104811930A (en) * 2015-05-19 2015-07-29 广东小天才科技有限公司 Network flow control method and network flow control system for mobile terminal
CN105183132A (en) * 2015-08-18 2015-12-23 小米科技有限责任公司 Energy conservation mode starting method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06311079A (en) * 1993-04-27 1994-11-04 Sharp Corp Mobile telephone set with automatic power-off function
JP5870891B2 (en) * 2012-10-11 2016-03-01 ソニー株式会社 Information processing apparatus, wireless communication apparatus, communication system, and information processing method
CN103365399B (en) * 2013-06-26 2017-02-08 贝壳网际(北京)安全技术有限公司 Control method and device for application object of mobile terminal
CN106102143B (en) * 2016-05-31 2020-01-14 Oppo广东移动通信有限公司 Application processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917516A (en) * 2010-08-16 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Power-saving processing method and system for mobile terminal, and mobile terminal
CN104811930A (en) * 2015-05-19 2015-07-29 广东小天才科技有限公司 Network flow control method and network flow control system for mobile terminal
CN105183132A (en) * 2015-08-18 2015-12-23 小米科技有限责任公司 Energy conservation mode starting method and apparatus

Also Published As

Publication number Publication date
CN106102143A (en) 2016-11-09
WO2017206883A1 (en) 2017-12-07

Similar Documents

Publication Publication Date Title
CN106102143B (en) Application processing method and device
CN104170460B (en) Network switching method and terminal
CN106658652B (en) Method and device for connecting WiFi hotspot
US20200145890A1 (en) Channel switching method and apparatus, and communication device
US10764349B2 (en) Self-organizing network communication
US10743252B2 (en) Method for identifying access point and hotspot and terminal
US9883442B2 (en) Offload processing method, control unit, and system
CN111093235B (en) Network switching method, equipment and storage medium
CN108696911B (en) Method and device for selecting data transmission mode of Internet of things
CN108093451B (en) Random access control method, device, storage medium and mobile terminal
CN108353378B (en) Transmission method, device and equipment for activation system information
CN111884836A (en) Service transmission method and device
CN107396409A (en) Wireless terminal frequency band switching method and wireless router
US20140056131A1 (en) Methods and apparatuses for accessing internet
US20160182313A1 (en) Service offloading method, device, and system
US20150289183A1 (en) Wireless communication apparatus, wireless communication method, and computer-readable recording medium
CN110708732A (en) Method and terminal for dynamically self-adapting network switching
CN109041255B (en) Access method and UE
US8855619B2 (en) Method for state transition and network device
EP2931000B1 (en) Wireless communication apparatus, wireless communication method, and wireless communication program
CN111093238B (en) Wireless network control method and device, storage medium and electronic equipment
CN107534853A (en) A kind of method and apparatus for starting relay function
CN115825821A (en) Differential pair detection method and related device
CN105376842B (en) Dialing and de-dialing method and device
CN109246784B (en) Roaming control method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant