WO2017206883A1 - Application processing method and apparatus, storage medium, and electronic device - Google Patents

Application processing method and apparatus, storage medium, and electronic device Download PDF

Info

Publication number
WO2017206883A1
WO2017206883A1 PCT/CN2017/086480 CN2017086480W WO2017206883A1 WO 2017206883 A1 WO2017206883 A1 WO 2017206883A1 CN 2017086480 W CN2017086480 W CN 2017086480W WO 2017206883 A1 WO2017206883 A1 WO 2017206883A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
obtaining
quality parameter
network quality
parameter
Prior art date
Application number
PCT/CN2017/086480
Other languages
French (fr)
Chinese (zh)
Inventor
张俊
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017206883A1 publication Critical patent/WO2017206883A1/en

Links

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

Definitions

  • the present invention relates to the field of electronic device technologies, and in particular, to an application processing method, device, storage medium, and electronic device.
  • the embodiment of the invention provides an application processing method, device, storage medium and electronic device, which can reduce the power consumption of the intelligent terminal.
  • an embodiment of the present invention provides an application processing method, including:
  • the target application running and using the network is closed.
  • an embodiment of the present invention provides an application processing apparatus, including: a receiving module, an obtaining module, a determining module, and a closing module;
  • the receiving module is configured to receive a parameter acquisition request when in a standby state and connected to a network;
  • the obtaining module is configured to acquire, according to the parameter obtaining request, a network quality parameter corresponding to the network;
  • the determining module is configured to determine whether the network quality parameter meets a preset condition
  • the shutdown module is configured to close a target application that is running and uses the network when the network quality parameter meets a preset condition.
  • an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the plurality of instructions are adapted to be loaded by a processor to execute the application processing method.
  • an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
  • the target application running and using the network is closed.
  • the embodiment of the invention provides an application processing method, device, storage medium and electronic device, which can reduce the power consumption of the intelligent terminal.
  • FIG. 1 is a schematic flowchart diagram of an application processing method according to an embodiment of the present invention.
  • FIG. 2 is another schematic flowchart of an application processing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an application processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is another schematic structural diagram of an application processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 6 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • a smart terminal In order to implement various functions to meet various needs of users, a smart terminal usually installs various kinds of applications (which may be simply referred to as applications). Some applications continue to run in the background while the smart terminal is in standby, and need to stay connected to its corresponding server; however, if the network quality of the network to which the smart terminal is currently connected changes, for example, the network quality deteriorates or becomes low. At the same time, the smart terminal frequently disconnects the reconnected network operation (ie, disconnects the network and re-establishes the network connection).
  • applications which may be simply referred to as applications.
  • An embodiment of the present invention provides an application processing method, including:
  • the target application running and using the network is closed.
  • the step of acquiring the network quality parameter corresponding to the network according to the parameter obtaining request specifically includes:
  • the operation information includes: disconnecting a disconnection frequency of the network connection and re-establishing a connection frequency of the network connection;
  • the step of acquiring the network quality parameter corresponding to the network according to the operation information specifically includes:
  • the step of acquiring the network quality parameter corresponding to the network according to the parameter obtaining request specifically includes:
  • the step of acquiring the network quality parameter corresponding to the network according to the number of the sending and the receiving quantity specifically includes:
  • the step of shutting down the target application that is running and using the network specifically includes:
  • the step of determining whether the network quality parameter meets a preset condition specifically includes:
  • the embodiment will be described from the perspective of an application processing device, which may be integrated into a terminal, and the terminal may be an electronic device such as a smart phone or a tablet computer.
  • An embodiment of the present invention provides an application processing method, including: receiving a parameter acquisition request when in a standby state and connecting to a network, and then acquiring a network quality parameter corresponding to the network according to the parameter acquisition request, and determining whether the network quality parameter is The preset condition is met, and if the network quality parameter satisfies the preset condition, the target application that is running and using the network is closed.
  • the application processing method of the embodiment of the present invention may be as follows:
  • the standby state is the screen-off state
  • the network to which the terminal is connected may be a data network (such as a 3G, a 4G network, or the like), or may be a wireless (WiFi) network, etc., which is not specifically limited by the present invention.
  • a timer may be integrated in the terminal, and the timer may be an application (Application, The form of the APP is integrated in the terminal, and the timer is set to trigger the terminal to receive the parameter acquisition request every preset time period, and the preset time period can be set according to actual requirements, for example, the preset time period can be set to 1 minute. Or 10 minutes, etc., that is, the step of "receiving a parameter acquisition request when in the standby state and connecting to the network" may specifically include:
  • the parameter acquisition request is received periodically.
  • the network quality parameter may be a parameter used to indicate the current network connection quality of the terminal.
  • the greater the network quality parameter value the better the network connection quality, or the smaller the network quality parameter value indicates the network connection quality.
  • the network quality parameter can be various, for example, the network quality parameter can be quality of service (Quality Of Service, QoS Key indicators (such as throughput, delay, etc.), or parameters derived from key QoS indicators, can also be user-defined network quality parameters, such as the user's performance based on the currently connected network and terminal equipment. A custom network quality parameter is obtained.
  • the method for obtaining the network quality parameter may be multiple.
  • the foregoing network quality parameter may be obtained based on the operation information, where the operation information may be in a process of connecting with the network, due to network access mode and network coverage. Information such as disconnection and connection caused by factors such as the strength of the network signal.
  • the step of obtaining the network quality parameter corresponding to the network according to the parameter obtaining request may include the following steps:
  • the method for obtaining the network quality parameter corresponding to the network according to the operation information may be multiple, for example, the operation information may be directly used as the network quality parameter;
  • the network quality parameter 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 foregoing step “acquiring the network quality parameter corresponding to the network according to the operation information” may be as follows:
  • the first preset frequency may be obtained after multiple experimental tests, and is used to measure the standard value of the disconnection frequency of the disconnected network connection of the terminal, or may be based on actual conditions such as user requirements and performance of the terminal device.
  • the self-set value similarly, the second preset frequency may be obtained after multiple experimental tests, and is used to measure the standard value of the connection frequency at which the terminal re-establishes the network connection, or may be based on the user's needs and the terminal device.
  • the actual situation and other conditions are set by the user.
  • the first comparison result may be obtained based on a disconnection frequency difference between the disconnection frequency and the first preset frequency, or may be compared by comparing the disconnection frequency with a value of the first preset frequency.
  • the second 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 comparing the connection frequency with a value of the second preset frequency.
  • the manner of obtaining may also be multiple.
  • the first comparison result and the second comparison result may be weighed, and the network is selected.
  • the party with the greater influence on the quality parameter is used as a reference for obtaining the quality parameter of the network, 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 may be combined and integrated.
  • the current network connection status may be tested by sending a probe signal (such as a heartbeat packet) to the server, and the network quality parameter is obtained according to the response result of the server, that is, the foregoing step “acquiring the network according to the parameter acquisition request.
  • a probe signal such as a heartbeat packet
  • the corresponding network quality parameters can be as follows:
  • the received quantity of the response packet returned by the received server may be directly used as the network quality parameter.
  • the network quality parameter may be obtained based on the quantity difference between the number of sent packets of the heartbeat packet and the received number of the response packet, that is, the step “acquires the network corresponding according to the number of transmissions and the number of receptions.
  • the network quality parameters may specifically include:
  • the first preset threshold may be obtained after multiple experimental tests, and is used to measure a standard value of a quantity difference between the number of sent packets of the heartbeat packet and the received number of the response packets. After the comparison result is obtained, The corresponding network quality parameters can be converted by a preset algorithm or rule.
  • step 103 Determine whether the network quality parameter meets the preset condition; if the network quality parameter meets the preset condition, perform step 104, and if the network quality parameter does not meet the preset condition, end the process.
  • the preset condition may be used as a condition for measuring network quality, and the network quality parameter may be compared with a preset second preset threshold to determine whether the network quality parameter meets a preset condition, where
  • the second preset threshold may be set according to actual requirements; that is, the step “determining whether the network quality parameter meets the preset condition” may specifically include:
  • the parameter value corresponding to the network quality parameter is less than or equal to the second preset threshold, it is determined that the network quality parameter does not satisfy the preset condition.
  • the network quality parameter when it is determined that the network quality parameter meets the preset condition, it may be determined that the network quality is poor, and when it is determined that the network quality parameter does not satisfy the preset condition, the network quality may be determined to be good.
  • the target application that is running and using the network is closed, and in order to make the solution more user-friendly, the user may be configured to allow the terminal to perform automatic processing.
  • the application is used as the target application to determine whether the application running in the background of the current connected network is the target application to determine whether to close the application, thereby avoiding the problem of mishandling; that is, the step of "closing the target application that is running and using the network"
  • the steps may specifically include:
  • the user may be provided with a selected space, and an application processing mechanism is added to process 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 an APP. It can provide a user-editable interface, which can list all the applications installed in the terminal. The user can select whether to authorize the application to the terminal system through the interface, and the terminal system adds the authorized application as a preset application to the pre-application.
  • the application identifier set when the network quality is poor, if it is detected that there is an application in the background that is the same as the preset application set, the application may be used as the target application, and the shutdown process is automatically performed.
  • an embodiment of the present invention provides an application processing method for receiving a parameter acquisition request when the network is in a standby state and connected to a network, and then obtaining a network quality parameter corresponding to the network according to the parameter acquisition request, and determining the network. Whether the quality parameter meets the preset condition, if the network quality parameter meets the preset condition, the target application that is running and using the network is closed.
  • the solution can close the target application that is running and uses the network based on the network quality parameter of the currently connected network; for example, when the network quality parameter indicates that the network quality is poor, the target application that is running and using the network can be closed, and the solution can be avoided.
  • the application frequently initiates a connection to its network server. Therefore, the resource consumption of the application can be reduced, and the power consumption of the terminal and the power consumption of the terminal are reduced.
  • an application processing method can be as follows:
  • the network to which the mobile terminal is connected may be a data network such as 3G or 4G, or may be a wireless WiFi network or a WiFi hotspot, etc., which is not specifically limited by the present invention.
  • the method for receiving the parameter acquisition request may be multiple.
  • a timer may be integrated in the mobile terminal, and the timer may be integrated in the terminal in the form of an APP, and the timer is set to trigger the terminal to receive every preset time period.
  • the parameter acquisition request may be set according to actual requirements.
  • the preset time period may be set to 1 minute or 10 minutes, etc., that is, the step “receive parameter acquisition request when in the standby state and connected to the network” Can include:
  • the parameter acquisition request is periodically received.
  • the mobile terminal acquires a network quality parameter corresponding to the network according to the parameter acquisition request.
  • the network quality parameter may be a parameter used to indicate the current network connection quality of the terminal.
  • the network quality parameter can be quality of service (Quality Of Service, QoS Key indicators (such as throughput, delay, etc.), or parameters derived from key QoS indicators of the user Qos, can also be user-defined network quality parameters, such as the user according to the currently connected network and terminal equipment A custom network quality parameter derived from performance.
  • the operation information for the network connection in the preset time period may be acquired according to the parameter acquisition request, where the network connection is a network connection between the mobile terminal and the network, and then, according to the The operation information acquires a network quality parameter corresponding to the network, where the operation information may include disconnecting a disconnection frequency of the network connection and reconnecting the connection frequency of the network connection.
  • the network quality parameter may be obtained based on the operation information, that is, the foregoing step “acquiring the network quality parameter corresponding to the network according to the operation information” may be as follows:
  • the first preset frequency may be obtained after multiple experimental tests, and is used to measure a standard value of the disconnection frequency of the mobile terminal disconnecting the network connection.
  • the second preset frequency may be after multiple experimental tests.
  • the standard value obtained for measuring the connection frequency of the mobile terminal re-establishing the network connection.
  • the mobile terminal determines whether the parameter value corresponding to the network quality parameter is greater than a preset threshold; if the parameter value corresponding to the network quality parameter is greater than the preset threshold, step 204 is performed, and if the parameter value corresponding to the network quality parameter is less than or equal to the preset threshold, the process ends. Process.
  • the preset threshold may be used as a condition for measuring the quality of the network.
  • the preset threshold may be set according to actual requirements; when the network quality parameter is determined to be greater than a preset threshold, the network quality may be determined to be poor. When it is determined that the network quality parameter is less than or equal to a preset threshold, it may be determined that the network quality is good.
  • the mobile terminal selects a corresponding application from the running application in the background according to the preset application identifier set, as the target application that needs to be closed.
  • the target application that is running and uses the network is closed, and in order to make the solution more user-friendly, the user may be configured to allow the mobile terminal to perform automatic processing.
  • the application is used as the target application to determine whether the application that is currently running in the background is connected to the target application to determine whether to close the application, thereby avoiding the problem of mishandling.
  • an application processing mechanism can be integrated in the mobile terminal, and the application processing mechanism can be integrated in the mobile terminal in the form of an APP, which can provide an interface that the user can edit, and the interface can list all the applications installed in the mobile terminal, and the user
  • the interface can be used to authorize the application to the terminal system.
  • the terminal system uses the authorized application as the target application. When the network quality is poor, the authorized application is automatically processed. For example, the WeChat and QQ can be authorized to the terminal system. If there is a WeChat, QQ, or Sina Weibo running in the background, only WeChat and QQ will be selected as the target application.
  • the mobile terminal closes the target application.
  • the closing of the target application may be specifically performed to completely kill the application, and in addition to ending the process of the application, the process tree corresponding to the application may be ended.
  • an embodiment of the present invention provides an application processing method, when a mobile terminal is in a standby state and is connected to a network, receiving a parameter acquisition request, and then acquiring a network quality parameter corresponding to the network according to the parameter acquisition request, and Determining whether the parameter value corresponding to the network quality parameter is greater than a preset threshold. If the parameter value corresponding to the network quality parameter is greater than the preset threshold, the corresponding application is selected from the running application in the background according to the preset application identifier set, as the need to be closed.
  • Target application and close the target application;
  • the solution can close the target application that is running and using the network based on the network quality parameter of the currently connected network; for example, when the network quality parameter indicates that the network quality is poor, the operation can be closed and used.
  • the target application of the network which can avoid the situation that the application frequently initiates a connection to its network server when the network quality is poor, so that the resource consumption of the application can be reduced, the power consumption of the terminal, and the power consumption of the terminal are reduced. .
  • the determining module is configured to determine whether the network quality parameter meets a preset condition
  • the shutdown module is configured to close a target application that is running and uses the network when the network quality parameter meets a preset condition.
  • the obtaining module includes: a sending submodule, a receiving submodule, and an obtaining submodule;
  • the sending submodule is configured to send a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request;
  • the receiving submodule is configured to receive a response packet returned by the server and used to respond to the heartbeat packet;
  • the acquiring sub-module is configured to acquire the number of the heartbeat packets sent and the number of the received packets in the preset time period, and obtain the network quality corresponding to the network according to the number of the sending and the number of the receiving parameter.
  • the closing module is configured to select a corresponding application from a running application in the background according to a preset application identifier set as a target application that needs to be closed; and close the target application.
  • the determining module is configured to determine whether the parameter value corresponding to the network quality parameter is greater than a second preset threshold; if yes, determining that the network quality parameter meets a preset condition; if not, It is determined that the network quality parameter does not satisfy the preset condition.
  • the application processing device may be integrated into a terminal, and the terminal may specifically include an electronic device such as a mobile phone, a tablet computer, or a notebook computer.
  • the application processing apparatus may include: a receiving module 301, an obtaining module 302, a determining module 303, and a closing module 304, where:
  • the receiving module 301 is configured to receive a parameter acquisition request when in a standby state and connected to the network;
  • the obtaining module 302 is configured to obtain a network quality parameter corresponding to the network according to the parameter obtaining request.
  • the determining module 303 is configured to determine whether the network quality parameter meets a preset condition
  • the shutdown module 304 is configured to close the target application that is running and uses the network when the network quality parameter meets the preset condition.
  • the obtaining module 302 may specifically include: a sending submodule 3021, a receiving submodule 3022, and an obtaining submodule 3023;
  • the sending sub-module 3021 is configured to send a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request.
  • the receiving submodule 3022 is configured to receive a response packet returned by the server and used to respond to the heartbeat packet.
  • the acquiring sub-module 3023 is configured to acquire the number of the heartbeat packets sent and the number of the received packets in the preset time period.
  • the network quality parameters corresponding to the network are obtained according to the number of the sending packets and the received number.
  • the closing module 304 is specifically configured to select a corresponding application from the running application in the background according to the preset application identifier set as the target application that needs to be closed; and close the target application.
  • the determining module 303 may be specifically configured to determine whether the parameter value corresponding to the network quality parameter is greater than a second preset threshold; if the parameter value corresponding to the network quality parameter is greater than the second preset threshold, determining The network quality parameter meets the preset condition; if the parameter value corresponding to the network quality parameter is less than or equal to the second preset threshold, it is determined that the network quality parameter does not satisfy the preset condition.
  • the receiving module 301 receives the parameter obtaining request, and the obtaining module 302 obtains the network quality parameter corresponding to the network according to the parameter obtaining request, and determines the module.
  • the shutdown module 304 closes the target application that is running and uses the network; the solution may be closed based on the network quality parameter of the currently connected network.
  • the target application of the network for example, when the network quality parameter indicates that the network quality is poor, the target application that is running and using the network can be closed, and the solution can avoid the application frequently to the network server when the network quality is poor.
  • the situation of initiating a connection therefore, can reduce the resource consumption of the application, reduce the power consumption of the terminal, and the power consumption of the terminal.
  • the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities.
  • the foregoing modules refer to the foregoing method embodiments, and details are not described herein again.
  • the embodiment of the invention further provides an electronic device, which may be a terminal such as a smart phone or a tablet computer.
  • the electronic device 400 includes a processor 401, a memory 402, a display screen 403, and a control circuit 404.
  • the processor 401 is electrically connected to the memory 402, the display screen 403, and the control circuit 404, respectively.
  • the processor 401 is a control center of the electronic device 400, and connects various parts of the entire electronic device 400 using various interfaces and lines, by running or loading an application stored in the memory 402, and calling data stored in the memory 402, executing The various functions and processing data of the electronic device 400 enable overall monitoring of the electronic device 400.
  • the processor 401 in the electronic device 400 loads the instructions corresponding to the process of one or more applications into the memory 402 according to the following steps, and is stored and stored in the memory 402 by the processor 401.
  • the application thus implementing various functions:
  • the target application that is running and using the network is closed.
  • the processor 401 can be configured to perform the following steps:
  • the operation information includes: disconnecting a disconnection frequency of the network connection and re-establishing a connection frequency of the network connection; and the processor 401 is configured to perform the following steps:
  • the processor 401 can be configured to perform the following steps:
  • the processor 401 can be configured to perform the following steps:
  • the processor 401 may be configured to: select a corresponding application from a running application in the background according to a preset application identifier set, as a target application that needs to be closed; and close the target application. .
  • the processor 401 can be configured to perform the following steps:
  • Memory 402 can be used to store applications and data.
  • the application stored in the memory 402 contains instructions that are executable in the processor.
  • Applications can form various functional modules.
  • the processor 401 executes various functional applications and data processing by running an application stored in the memory 402.
  • the display screen 403 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
  • the control circuit 404 is electrically connected to the display screen 403 for controlling the display screen 403 to display information.
  • the electronic device 400 further includes a radio frequency circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power source 409.
  • the processor 401 is electrically connected to the radio frequency circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409, respectively.
  • the radio frequency circuit 405 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
  • the input unit 406 can be configured to receive input numbers, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.
  • the input unit 406 can include a fingerprint identification module.
  • the audio circuit 407 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
  • Electronic device 400 may also include at least one type of sensor 408, such as a light sensor, motion sensor, and other sensors.
  • sensor 408 such as a light sensor, motion sensor, and other sensors.
  • Power source 409 can be used to power various components of electronic device 400.
  • the power supply 409 can be logically coupled to the processor 401 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the plurality of instructions are adapted to be loaded by a processor to execute the application processing method described in the foregoing method embodiment, for example, in standby mode.
  • the program can be stored in a computer readable storage medium, such as It is stored in the memory of the terminal and executed by at least one processor within the terminal, and may include a flow of an embodiment of the information distribution method during execution.
  • the storage medium may include: a read only memory (Read Only Memory, ROM), Random Access Memory (RAM), disk or CD.
  • Each functional module may be integrated into one processing chip, or each module may exist physically or separately. Or more than two modules are integrated in one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

Landscapes

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

Abstract

Provided is an application processing method, comprising: when in a standby state and connected to a network, receiving a parameter acquisition request; according to the parameter acquisition request, acquiring a network quality parameter corresponding to the network; determining whether the network quality parameter satisfies a preset condition; if the network quality parameter satisfies the preset condition, shutting down a target application which is currently running and using the network. Also provided are an application processing apparatus, a storage medium, and an electronic device.

Description

一种应用处理方法、装置、存储介质及电子设备 Application processing method, device, storage medium and electronic device 技术领域Technical field
本发明涉及电子设备技术领域,具体涉及一种应用处理方法、装置、存储介质及电子设备。The present invention relates to the field of electronic device technologies, and in particular, to an application processing method, device, storage medium, and electronic device.
背景技术Background technique
随着智能终端的发展,智能终端能够兼容的功能越来越多,不仅丰富用户生活,还给用户带来便利。随着移动终端等电子设备已日益融入人们生活、应用功能日趋完善,给用户带来了极大便利以及提高用户体验。With the development of intelligent terminals, more and more intelligent terminals can be compatible, which not only enriches the user's life, but also brings convenience to users. As electronic devices such as mobile terminals have become increasingly integrated into people's lives and application functions have become more and more perfect, it has brought great convenience to users and improved user experience.
技术问题technical problem
本发明实施例提供一种应用处理方法、装置、存储介质及电子设备,可以降低智能终端的功耗。The embodiment of the invention provides an application processing method, device, storage medium and electronic device, which can reduce the power consumption of the intelligent terminal.
技术解决方案Technical solution
第一方面,本发明实施例提供一种应用处理方法,包括:In a first aspect, an embodiment of the present invention provides an application processing method, including:
在处于待机状态且连接网络时,接收参数获取请求;Receiving a parameter acquisition request while in a standby state and connected to the network;
根据所述参数获取请求,获取所述网络对应的网络质量参数;Obtaining, according to the parameter obtaining request, a network quality parameter corresponding to the network;
判断所述网络质量参数是否满足预设条件;Determining whether the network quality parameter meets a preset condition;
若所述网络质量参数满足预设条件,则关闭正在运行且使用所述网络的目标应用。If the network quality parameter satisfies a preset condition, the target application running and using the network is closed.
第二方面,本发明实施例提供一种应用处理装置,包括:接收模块、获取模块、判断模块和关闭模块;其中,In a second aspect, an embodiment of the present invention provides an application processing apparatus, including: a receiving module, an obtaining module, a determining module, and a closing module;
所述接收模块,用于在处于待机状态且连接网络时,接收参数获取请求;The receiving module is configured to receive a parameter acquisition request when in a standby state and connected to a network;
所述获取模块,用于根据所述参数获取请求获取所述网络对应的网络质量参数;The obtaining module is configured to acquire, according to the parameter obtaining request, a network quality parameter corresponding to the network;
所述判断模块,用于判断所述网络质量参数是否满足预设条件;The determining module is configured to determine whether the network quality parameter meets a preset condition;
所述关闭模块,用于在所述网络质量参数满足预设条件时,关闭正在运行且使用所述网络的目标应用。The shutdown module is configured to close a target application that is running and uses the network when the network quality parameter meets a preset condition.
第三方面,本发明实施例提供一种存储介质,所述存储介质中存储有多条指令,所述多条指令适于由处理器加载以执行上述应用处理方法。In a third aspect, an embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the plurality of instructions are adapted to be loaded by a processor to execute the application processing method.
第四方面,本发明实施例提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:In a fourth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
在处于待机状态且连接网络时,接收参数获取请求;Receiving a parameter acquisition request while in a standby state and connected to the network;
根据所述参数获取请求,获取所述网络对应的网络质量参数;Obtaining, according to the parameter obtaining request, a network quality parameter corresponding to the network;
判断所述网络质量参数是否满足预设条件;Determining whether the network quality parameter meets a preset condition;
若所述网络质量参数满足预设条件,则关闭正在运行且使用所述网络的目标应用。If the network quality parameter satisfies a preset condition, the target application running and using the network is closed.
有益效果 Beneficial effect
本发明实施例提供一种应用处理方法、装置、存储介质及电子设备,可以降低智能终端的功耗。The embodiment of the invention provides an application processing method, device, storage medium and electronic device, which can reduce the power consumption of the intelligent terminal.
附图说明DRAWINGS
图1为本发明实施例提供的应用处理方法的流程示意图。FIG. 1 is a schematic flowchart diagram of an application processing method according to an embodiment of the present invention.
图2为本发明实施例提供的应用处理方法的另一流程示意图。FIG. 2 is another schematic flowchart of an application processing method according to an embodiment of the present invention.
图3为本发明实施例提供的应用处理装置的结构示意图。FIG. 3 is a schematic structural diagram of an application processing apparatus according to an embodiment of the present invention.
图4为本发明实施例提供的应用处理装置的另一结构示意图。FIG. 4 is another schematic structural diagram of an application processing apparatus according to an embodiment of the present invention.
图5为本发明实施例提供的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
图6为本发明实施例提供的电子设备的另一结构示意图。FIG. 6 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
为了实现各种功能以满足用户的各种需求,通常智能终端会安装各种各样的应用程序(可以简称为应用)。在智能终端处于待机状态时有些应用程序还继续在后台运行,并且需要与其对应的服务器保持连接;然而,如果智能终端当前连接的网络的网络质量发生变化时,比如,网络质量变差或者变低时,智能终端会频繁地进行断开重连网络操作(即断开网络连接和重新建立网络连接的操作),此时,在后台运行的某些应用程序(如使用网络的应用程序)会在网络连接恢复之后重新发起对其网络服务器的连接;因此,由于网络的频繁地断开和重连,后台运行的某些应用程序会频繁地发起对其网络服务器的连接,此时,该应用程序会在后台消耗大量的CPU资源,导致智能终端的功耗比较高,智能终端的耗电量比较大。In order to implement various functions to meet various needs of users, a smart terminal usually installs various kinds of applications (which may be simply referred to as applications). Some applications continue to run in the background while the smart terminal is in standby, and need to stay connected to its corresponding server; however, if the network quality of the network to which the smart terminal is currently connected changes, for example, the network quality deteriorates or becomes low. At the same time, the smart terminal frequently disconnects the reconnected network operation (ie, disconnects the network and re-establishes the network connection). At this time, some applications running in the background (such as applications using the network) will be After the network connection is restored, the connection to its network server is re-initiated; therefore, some applications running in the background frequently initiate a connection to their network server due to the frequent disconnection and reconnection of the network. At this time, the application It consumes a large amount of CPU resources in the background, resulting in high power consumption of the smart terminal, and the power consumption of the smart terminal is relatively large.
本发明实施例提供一种应用处理方法,包括:An embodiment of the present invention provides an application processing method, including:
在处于待机状态且连接网络时,接收参数获取请求;Receiving a parameter acquisition request while in a standby state and connected to the network;
根据所述参数获取请求,获取所述网络对应的网络质量参数;Obtaining, according to the parameter obtaining request, a network quality parameter corresponding to the network;
判断所述网络质量参数是否满足预设条件;Determining whether the network quality parameter meets a preset condition;
若所述网络质量参数满足预设条件,则关闭正在运行且使用所述网络的目标应用。If the network quality parameter satisfies a preset condition, the target application running and using the network is closed.
在某些实施方式中,所述根据所述参数获取请求获取所述网络对应的网络质量参数的步骤具体包括:In some implementations, the step of acquiring the network quality parameter corresponding to the network according to the parameter obtaining request specifically includes:
根据所述参数获取请求获取预设时间段内针对网络连接的操作信息,其中所述网络连接为与所述网络之间的网络连接;Obtaining, according to the parameter obtaining request, operation information for a network connection within a preset time period, where the network connection is a network connection with the network;
根据所述操作信息获取所述网络对应的网络质量参数。Obtaining, according to the operation information, a network quality parameter corresponding to the network.
在某些实施方式中,所述操作信息包括:断开所述网络连接的断开频率和重新建立所述网络连接的连接频率;In some embodiments, the operation information includes: disconnecting a disconnection frequency of the network connection and re-establishing a connection frequency of the network connection;
所述根据所述操作信息获取所述网络对应的网络质量参数的步骤具体包括:The step of acquiring the network quality parameter corresponding to the network according to the operation information specifically includes:
获取所述断开频率与第一预设频率之间的第一比较结果、以及所述连接频率与第二预设频率之间的第二比较结果;Obtaining a first comparison result between the disconnection frequency and the first preset frequency, and a second comparison result between the connection frequency and the second preset frequency;
根据所述第一比较结果和所述第二比较结果获取所述网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
在某些实施方式中,所述根据所述参数获取请求,获取所述网络对应的网络质量参数的步骤具体包括:In some implementations, the step of acquiring the network quality parameter corresponding to the network according to the parameter obtaining request specifically includes:
根据所述参数获取请求,每隔预设时长向相应的服务器发送心跳包;Sending a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request;
接收所述服务器返回的用于响应所述心跳包的应答包;Receiving a response packet returned by the server for responding to the heartbeat packet;
获取在预设时间段内所述心跳包的发送数量以及所述应答包的接收数量;Obtaining, by the preset time period, the number of the heartbeat packets sent and the number of the response packets received;
根据所述发送数量以及所述接收数量,获取所述网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the number of the sending and the quantity of the receiving.
在某些实施方式中,所述根据发送数量以及所述接收数量,获取所述网络对应的网络质量参数的步骤具体包括:In some implementations, the step of acquiring the network quality parameter corresponding to the network according to the number of the sending and the receiving quantity specifically includes:
获取所述发送数量与所述接收数量之间的数量差;Obtaining a quantity difference between the number of transmissions and the number of receptions;
获取所述数量差与第一预设阈值之间的比较结果;Obtaining a comparison result between the quantity difference and a first preset threshold;
根据所述比较结果获取所述网络对应的网络质量参数。Obtaining network quality parameters corresponding to the network according to the comparison result.
在某些实施方式中,所述关闭正在运行且使用网络的目标应用的步骤具体包括:In some embodiments, the step of shutting down the target application that is running and using the network specifically includes:
根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用;Selecting a corresponding application from the running application in the background according to the preset application identifier set as the target application that needs to be closed;
关闭所述目标应用。Close the target app.
在某些实施方式中,所述判断所述网络质量参数是否满足预设条件的步骤具体包括:In some implementations, the step of determining whether the network quality parameter meets a preset condition specifically includes:
判断所述网络质量参数对应的参数值是否大于第二预设阈值;Determining whether a parameter value corresponding to the network quality parameter is greater than a second preset threshold;
若所述网络质量参数对应的参数值大于第二预设阈值,则判定所述网络质量参数满足预设条件;If the parameter value corresponding to the network quality parameter is greater than the second preset threshold, determining that the network quality parameter meets the preset condition;
若所述网络质量参数对应的参数值小于等于第二预设阈值,则判定所述网络质量参数不满足预设条件。If the parameter value corresponding to the network quality parameter is less than or equal to the second preset threshold, determining that the network quality parameter does not meet the preset condition.
本实施例将从应用处理装置的角度进行描述,该应用处理装置具体可以集成在终端中,该终端可以为智能手机、平板电脑等电子设备。The embodiment will be described from the perspective of an application processing device, which may be integrated into a terminal, and the terminal may be an electronic device such as a smart phone or a tablet computer.
本发明实施例提供了一种应用处理方法,包括:在处于待机状态且连接网络时,接收参数获取请求,然后,根据该参数获取请求获取该网络对应的网络质量参数,判断该网络质量参数是否满足预设条件,若该网络质量参数满足预设条件,则关闭正在运行且使用网络的目标应用。An embodiment of the present invention provides an application processing method, including: receiving a parameter acquisition request when in a standby state and connecting to a network, and then acquiring a network quality parameter corresponding to the network according to the parameter acquisition request, and determining whether the network quality parameter is The preset condition is met, and if the network quality parameter satisfies the preset condition, the target application that is running and using the network is closed.
如图1所示,本发明实施例的应用处理方法,具体流程可以如下:As shown in FIG. 1 , the application processing method of the embodiment of the present invention may be as follows:
101、在处于待机状态且连接网络时,接收参数获取请求。101. Receive a parameter acquisition request when in a standby state and connected to the network.
具体地,待机状态即熄屏状态,终端所连接的网络可以是数据网络(如3G、4G网络等),也可以是无线(WiFi)网络等,本发明对此不作具体限定,其中,接收参数获取请求的方式可以有多种,可以是终端自身触发接收参数获取请求,也可以是服务器触发终端接收参数获取请求;比如,可以在终端集成一个定时器,该定时器可以以应用程序(Application,APP)的形式集成在终端,并且将定时器设置为每隔预设时间段触发终端接收参数获取请求,该预设时间段可以根据实际需求进行设置,比如该预设时间段可以设置为1分钟或10分钟等,即步骤“在处于待机状态且连接网络时,接收参数获取请求”具体可以包括:Specifically, the standby state is the screen-off state, and the network to which the terminal is connected may be a data network (such as a 3G, a 4G network, or the like), or may be a wireless (WiFi) network, etc., which is not specifically limited by the present invention. There are a plurality of ways to obtain a request, which may be that the terminal itself triggers the receiving parameter acquisition request, or the server triggers the terminal to receive the parameter obtaining request; for example, a timer may be integrated in the terminal, and the timer may be an application (Application, The form of the APP is integrated in the terminal, and the timer is set to trigger the terminal to receive the parameter acquisition request every preset time period, and the preset time period can be set according to actual requirements, for example, the preset time period can be set to 1 minute. Or 10 minutes, etc., that is, the step of "receiving a parameter acquisition request when in the standby state and connecting to the network" may specifically include:
在终端处于熄屏状态且连接网络时,定时接收参数获取请求。When the terminal is in the off state and connected to the network, the parameter acquisition request is received periodically.
102、根据该参数获取请求,获取该网络对应的网络质量参数。102. Acquire a request according to the parameter, and obtain a network quality parameter corresponding to the network.
在本发明实施例中,该网络质量参数可以是用于指示终端当前网络连接质量的参数,比如,网络质量参数值越大表示网络连接质量越好,或者网络质量参数值越小表示网络连接质量越好;其中,该网络质量参数可以有多种,比如,该网络质量参数可以是服务质量(Quality of Service,QoS )的关键指标(如吞吐量、时延等),或是基于Qos的关键指标所得到的参数,还可以是用户自定义的网络质量参数,比如用户根据当前所连接的网络及终端设备的性能所得到的一个自定义的网络质量参数。In the embodiment of the present invention, the network quality parameter may be a parameter used to indicate the current network connection quality of the terminal. For example, the greater the network quality parameter value, the better the network connection quality, or the smaller the network quality parameter value indicates the network connection quality. The better, the network quality parameter can be various, for example, the network quality parameter can be quality of service (Quality Of Service, QoS Key indicators (such as throughput, delay, etc.), or parameters derived from key QoS indicators, can also be user-defined network quality parameters, such as the user's performance based on the currently connected network and terminal equipment. A custom network quality parameter is obtained.
其中,获取网络质量参数的方法可以有多种,比如,可以基于操作信息得到上述网络质量参数,其中,该操作信息可以是在与该网络连接的过程中,由于网络接入方式、网络覆盖范围、网络信号强弱等因素而产生的断开、连接等信息。即步骤“根据该参数获取请求,获取该网络对应的网络质量参数”具体可以包括以下步骤:The method for obtaining the network quality parameter may be multiple. For example, the foregoing network quality parameter may be obtained based on the operation information, where the operation information may be in a process of connecting with the network, due to network access mode and network coverage. Information such as disconnection and connection caused by factors such as the strength of the network signal. The step of obtaining the network quality parameter corresponding to the network according to the parameter obtaining request may include the following steps:
根据参数获取请求获取预设时间段内针对网络连接的操作信息,其中网络连接为与该网络之间的网络连接;Acquiring, according to the parameter obtaining request, operation information for a network connection within a preset time period, where the network connection is a network connection with the network;
根据该操作信息获取该网络对应的网络质量参数。Obtaining network quality parameters corresponding to the network according to the operation information.
在本发明实施例中,该操作信息可以是终端与该网络断开连接的断开频率,还可以是终端与该网络断开后重新与该网络建立网络连接的连接频率,即该操作信息可以包括:断开网络连接的断开频率和重新建立网络连接的连接频率。其中,该断开频率和连接频率可以是一段时间内的平均频率,也可以是单位时间内的网络断开次数和网络连接次数。In the embodiment of the present invention, the operation information may be a disconnection frequency at which the terminal disconnects from the network, or may be a connection frequency at which the terminal re-establishes a network connection with the network after the network is disconnected from the network, that is, the operation information may be This includes: disconnecting the disconnection frequency of the network connection and reconnecting the network connection. The disconnection frequency and the connection frequency may be an average frequency within a period of time, or may be the number of network disconnections and the number of network connections per unit time.
具体地,根据该操作信息获取该网络对应的网络质量参数的方式可以有多种,比如,可以直接将该操作信息作为网络质量参数;Specifically, the method for obtaining the network quality parameter corresponding to the network according to the operation information may be multiple, for example, the operation information may be directly used as the network quality parameter;
在某些实施方式中,为了提高网络质量参数的准确性,可以基于该操作信息得到该网络质量参数,即上述步骤“根据该操作信息获取该网络对应的网络质量参数”具体流程可以如下:In some embodiments, 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 foregoing step “acquiring 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 the first preset frequency, and a second comparison result between the connection frequency and the second preset frequency;
根据第一比较结果和第二比较结果获取该网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
其中,第一预设频率可以是经过多次实验测试而获得的,用于衡量终端断开网络连接的断开频率的标准值,也可以是根据用户需求和终端设备的性能等实际情况由用户自行设定的数值;同样地,第二预设频率可以是经过多次实验测试而获得的,用于衡量终端重新建立网络连接的连接频率的标准值,也可以是根据用户需求和终端设备的性能等实际情况由用户自行设定的数值。The first preset frequency may be obtained after multiple experimental tests, and is used to measure the standard value of the disconnection frequency of the disconnected network connection of the terminal, or may be based on actual conditions such as user requirements and performance of the terminal device. The self-set value; similarly, the second preset frequency may be obtained after multiple experimental tests, and is used to measure the standard value of the connection frequency at which the terminal re-establishes the network connection, or may be based on the user's needs and the terminal device. The actual situation and other conditions are set by the user.
在具体实施过程中,该第一比较结果可以是基于断开频率与第一预设频率之间的断开频率差值而得到的,或者可以通过比较断开频率与第一预设频率的数值大小而得到;同样地,该第二比较结果可以基于连接频率与第二预设频率之间的连接频率差值而得到,或者可以通过比较连接频率与第二预设频率的数值大小而得到。In a specific implementation process, the first comparison result may be obtained based on a disconnection frequency difference between the disconnection frequency and the first preset frequency, or may be compared by comparing the disconnection frequency with a value of the first preset frequency. Similarly, the second 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 comparing the connection frequency with a value of 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 manner of obtaining may also be multiple. For example, the first comparison result and the second comparison result may be weighed, and the network is selected. The party with the greater influence on the quality parameter is used as a reference for obtaining the quality parameter of the network, 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 may be combined and integrated. Obtain the benchmark of the network quality parameter, and then convert the corresponding network quality parameter by using a preset algorithm or rule.
另一可选的实施方式,可以通过向服务器发送试探信号(如心跳包)测试当前的网络连接状态,根据服务器的响应结果,得到网络质量参数,即上述步骤“根据参数获取请求,获取该网络对应的网络质量参数”具体流程可以如下:In another optional implementation manner, the current network connection status may be tested by sending a probe signal (such as a heartbeat packet) to the server, and the network quality parameter is obtained according to the response result of the server, that is, the foregoing step “acquiring the network according to the parameter acquisition request. The corresponding network quality parameters can be as follows:
根据参数获取请求,每隔预设时长向相应的服务器发送心跳包;Sending a heartbeat packet to the corresponding server every preset time according to the parameter acquisition request;
接收服务器返回的用于响应心跳包的应答包;Receiving a response packet returned by the server for responding to the heartbeat packet;
获取在预设时间段内心跳包的发送数量以及应答包的接收数量;Obtaining the number of heartbeat packets sent and the number of received packets in the preset time period;
根据发送数量以及接收数量,获取网络对应的网络质量参数。Obtain the network quality parameters corresponding to the network according to the number of transmissions and the number of received.
在本发明实施例中,可以直接将接收到的服务器返回的的应答包的接收数量,作为网络质量参数。In the embodiment of the present invention, the received quantity of the response packet returned by the received server may be directly used as the network quality parameter.
进一步地,为了提高网络质量参数的准确性,可以基于心跳包的发送数量与应答包的接收数量之间的数量差值得到该网络质量参数,即步骤“根据发送数量以及接收数量,获取网络对应的网络质量参数”具体可以包括:Further, in order to improve the accuracy of the network quality parameter, the network quality parameter may be obtained based on the quantity difference between the number of sent packets of the heartbeat packet and the received number of the response packet, that is, the step “acquires the network corresponding according to the number of transmissions and the number of receptions. The network quality parameters may specifically include:
获取发送数量与接收数量之间的数量差;Obtain the difference between the number of transmissions and the number of receptions;
获取数量差与第一预设阈值之间的比较结果;Obtaining a comparison result between the quantity difference and the first preset threshold;
根据比较结果获取网络对应的网络质量参数。Obtain network quality parameters corresponding to the network according to the comparison result.
具体地,该第一预设阈值可以是经过多次实验测试而获得的,用于衡量心跳包的发送数量与应答包的接收数量之间的数量差大小的标准值,在得到比较结果后,可以通过预设算法或规则换算出对应的网络质量参数。Specifically, the first preset threshold may be obtained after multiple experimental tests, and is used to measure a standard value of a quantity difference between the number of sent packets of the heartbeat packet and the received number of the response packets. After the comparison result is obtained, The corresponding network quality parameters can be converted by a preset algorithm or rule.
103、判断该网络质量参数是否满足预设条件;若该网络质量参数满足预设条件,执行步骤104,若该网络质量参数不满足预设条件,结束流程。103. Determine whether the network quality parameter meets the preset condition; if the network quality parameter meets the preset condition, perform step 104, and if the network quality parameter does not meet the preset condition, end the process.
具体地,该预设条件可以作为衡量网络质量好坏的条件,可以通过将该网络质量参数与预先设定的第二预设阈值比较,以判断该网络质量参数是否满足预设条件,其中,该第二预设阈值可以根据实际需求进行设定;即步骤“判断该网络质量参数是否满足预设条件”具体可以包括:Specifically, the preset condition may be used as a condition for measuring network quality, and the network quality parameter may be compared with a preset second preset threshold to determine whether the network quality parameter meets a preset condition, where The second preset threshold may be set according to actual requirements; that is, the step “determining whether the network quality parameter meets the preset condition” may specifically include:
判断网络质量参数对应的参数值是否大于第二预设阈值;Determining whether a parameter value corresponding to the network quality parameter is greater than a second preset threshold;
若网络质量参数对应的参数值大于第二预设阈值,则判定网络质量参数满足预设条件;If the parameter value corresponding to the network quality parameter is greater than the second preset threshold, determining that the network quality parameter meets the preset condition;
若网络质量参数对应的参数值小于等于第二预设阈值,则判定网络质量参数不满足预设条件。If the parameter value corresponding to the network quality parameter is less than or equal to the second preset threshold, it is determined that the network quality parameter does not satisfy the preset condition.
在实际应用中,判定网络质量参数满足预设条件时,可以确定为网络质量较差,在判定网络质量参数不满足预设条件时,可以确定为网络质量较好。In practical applications, when it is determined that the network quality parameter meets the preset condition, it may be determined that the network quality is poor, and when it is determined that the network quality parameter does not satisfy the preset condition, the network quality may be determined to be good.
104、关闭正在运行且使用网络的目标应用。104. Shut down the target application that is running and using the network.
具体地,在判断网络质量参数满足预设条件(即网络质量较差)时,关闭正在运行且使用网络的目标应用,为了使本方案更加人性化,可以由用户设定允许终端进行自动处理的应用作为目标应用,通过判断当前连接网络的正在后台运行的应用是否为目标应用,以确定是否对该应用进行关闭操作,从而避免误处理的问题;即步骤“关闭正在运行且使用网络的目标应用”的步骤具体可以包括:Specifically, when it is determined that the network quality parameter meets the preset condition (that is, the network quality is poor), the target application that is running and using the network is closed, and in order to make the solution more user-friendly, the user may be configured to allow the terminal to perform automatic processing. The application is used as the target application to determine whether the application running in the background of the current connected network is the target application to determine whether to close the application, thereby avoiding the problem of mishandling; that is, the step of "closing the target application that is running and using the network" The steps may specifically include:
根据预设应用标识集合从后台正在运行的应用中选取相应的应用,作为需要关闭的目标应用;Selecting, according to the preset application identifier set, the corresponding application from the running application in the background as the target application that needs to be closed;
关闭目标应用。Close the target app.
在具体实施过程中,可以为用户提供选择的空间,增加一个应用处理机制,用于在网络质量差时对正在后台运行的应用进行处理;比如,该应用处理机制可以APP的形式集成在终端,其可以提供一个用户可以编辑的界面,该界面可以罗列出终端中安装的所有应用,用户可以通过该界面选择是否将应用授权给终端系统,终端系统将授权的应用作为预设应用添加到预设应用标识集合中,在网络质量差时,若检测到后台存在与该预设应用集合相同的应用,则可以将该应用作为目标应用,自动进行关闭处理。In the specific implementation process, the user may be provided with a selected space, and an application processing mechanism is added to process 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 an APP. It can provide a user-editable interface, which can list all the applications installed in the terminal. The user can select whether to authorize the application to the terminal system through the interface, and the terminal system adds the authorized application as a preset application to the pre-application. In the application identifier set, when the network quality is poor, if it is detected that there is an application in the background that is the same as the preset application set, the application may be used as the target application, and the shutdown process is automatically performed.
由上可知,本发明实施例提供了一种应用处理方法,通过在处于待机状态且连接网络时,接收参数获取请求,然后,根据该参数获取请求获取该网络对应的网络质量参数,判断该网络质量参数是否满足预设条件,若该网络质量参数满足预设条件,则关闭正在运行且使用网络的目标应用。该方案可以基于当前连接网络的网络质量参数关闭正在运行且使用网络的目标应用;比如,当网络质量参数表示网络质量比较差时,可以关闭正在运行且使用网络的目标应用,该方案可以避免出现当网络质量比较差时应用程序频繁地向其网络服务器发起连接的情况,因此,可以减少应用程序的资源消耗,降低了终端的功耗以及终端的电量消耗。As can be seen from the above, an embodiment of the present invention provides an application processing method for receiving a parameter acquisition request when the network is in a standby state and connected to a network, and then obtaining a network quality parameter corresponding to the network according to the parameter acquisition request, and determining the network. Whether the quality parameter meets the preset condition, if the network quality parameter meets the preset condition, the target application that is running and using the network is closed. The solution can close the target application that is running and uses the network based on the network quality parameter of the currently connected network; for example, when the network quality parameter indicates that the network quality is poor, the target application that is running and using the network can be closed, and the solution can be avoided. When the network quality is relatively poor, the application frequently initiates a connection to its network server. Therefore, the resource consumption of the application can be reduced, and the power consumption of the terminal and the power consumption of the terminal are reduced.
本实施例将根据上述实施例所描述的方法,举例作进一步详细说明。This embodiment will be described in further detail based on the method described in the above embodiments.
在本实施例中,将以该应用处理装置具体集成在移动终端为例进行详细描述。In this embodiment, a detailed description will be made by taking the application processing device specifically integrated in the mobile terminal as an example.
如图2所示,一种应用处理方法,具体流程可以如下:As shown in Figure 2, an application processing method can be as follows:
201、在移动终端处于待机状态且连接网络时,接收参数获取请求。201. Receive a parameter acquisition request when the mobile terminal is in a standby state and connected to the network.
具体地,移动终端所连接的网络可以是3G、4G等数据网络等,也可以是无线WiFi网络或者WiFi热点等,本发明对此不作具体限定。Specifically, the network to which the mobile terminal is connected may be a data network such as 3G or 4G, or may be a wireless WiFi network or a WiFi hotspot, etc., which is not specifically limited by the present invention.
其中,接收参数获取请求的方式可以有多种,比如,可以在移动终端集成一个定时器,该定时器可以APP的形式集成在终端,并且将定时器设置为每隔预设时间段触发终端接收参数获取请求,该预设时间段可以根据实际需求进行设置,比如该预设时间段可以设置为1分钟或10分钟等,即步骤“在处于待机状态且连接网络时,接收参数获取请求”具体可以包括:The method for receiving the parameter acquisition request may be multiple. For example, a timer may be integrated in the mobile terminal, and the timer may be integrated in the terminal in the form of an APP, and the timer is set to trigger the terminal to receive every preset time period. The parameter acquisition request may be set according to actual requirements. For example, the preset time period may be set to 1 minute or 10 minutes, etc., that is, the step “receive parameter acquisition request when in the standby state and connected to the network” Can include:
在移动终端处于熄屏状态且连接网络时,定时接收参数获取请求。When the mobile terminal is in the off state and connected to the network, the parameter acquisition request is periodically received.
202、移动终端根据该参数获取请求,获取该网络对应的网络质量参数。202. The mobile terminal acquires a network quality parameter corresponding to the network according to the parameter acquisition request.
在本发明实施例中,该网络质量参数可以是用于指示终端当前网络连接质量的参数,比如,网络质量参数值越小表示网络连接质量越好;其中,该网络质量参数可以有多种,比如,该网络质量参数可以是服务质量(Quality of Service,QoS )的关键指标(如吞吐量、时延等),或是基于者Qos的关键指标所得到的参数,还可以是用户自定义的网络质量参数,比如用户根据当前所连接的网络及终端设备的性能所得到的一个自定义的网络质量参数。In the embodiment of the present invention, the network quality parameter may be a parameter used to indicate the current network connection quality of the terminal. For example, the smaller the network quality parameter value is, the better the network connection quality is; wherein the network quality parameter may be multiple. For example, the network quality parameter can be quality of service (Quality Of Service, QoS Key indicators (such as throughput, delay, etc.), or parameters derived from key QoS indicators of the user Qos, can also be user-defined network quality parameters, such as the user according to the currently connected network and terminal equipment A custom network quality parameter derived from performance.
具体地,在获取该网络对应的网络质量参数时,可以根据参数获取请求获取预设时间段内针对网络连接的操作信息,网络连接为移动终端与该网络之间的网络连接,然后,根据该操作信息获取该网络对应的网络质量参数,其中,该操作信息可以包括断开网络连接的断开频率和重新建立网络连接的连接频率。Specifically, when acquiring the network quality parameter corresponding to the network, the operation information for the network connection in the preset time period may be acquired according to the parameter acquisition request, where the network connection is a network connection between the mobile terminal and the network, and then, according to the The operation information acquires a network quality parameter corresponding to the network, where the operation information may include disconnecting a disconnection frequency of the network connection and reconnecting the connection frequency of the network connection.
在某些实施方式中,可以基于该操作信息得到该网络质量参数,即上述步骤“根据该操作信息获取该网络对应的网络质量参数”具体流程可以如下:In some embodiments, the network quality parameter may be obtained based on the operation information, that is, the foregoing step “acquiring 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 the first preset frequency, and a second comparison result between the connection frequency and the second preset frequency;
根据第一比较结果和第二比较结果获取该网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
其中,第一预设频率可以是经过多次实验测试而获得的,用于衡量移动终端断开网络连接的断开频率的标准值,同样地,第二预设频率可以是经过多次实验测试而获得的,用于衡量移动终端重新建立网络连接的连接频率的标准值。The first preset frequency may be obtained after multiple experimental tests, and is used to measure a standard value of the disconnection frequency of the mobile terminal disconnecting the network connection. Similarly, the second preset frequency may be after multiple experimental tests. And the standard value obtained for measuring the connection frequency of the mobile terminal re-establishing the network connection.
在具体实施过程中,该第一比较结果可以是基于断开频率与第一预设频率之间的断开频率差值而得到的,同样地,该第二比较结果可以基于连接频率与第二预设频率之间的连接频率差值而得到。在根据第一比较结果和第二比较结果获取该网络对应的网络质量参数时,可以将第一比较结果和第二比较结果两者结合起来,综合作为获取该网络质量参数的基准,再通过预设算法或规则换算出对应的网络质量参数。In a specific implementation process, the first comparison result may be obtained based on a disconnection frequency difference between the disconnection frequency and the first preset frequency. Similarly, the second comparison result may be based on the connection frequency and the second Obtained by the difference in the connection frequency between the preset frequencies. When the network quality parameter corresponding to the network is obtained according to the first comparison result and the second comparison result, the first comparison result and the second comparison result may be combined, and integrated as a reference for acquiring the network quality parameter, and then Set the algorithm or rule to convert the corresponding network quality parameters.
203、移动终端判断网络质量参数对应的参数值是否大于预设阈值;若网络质量参数对应的参数值大于预设阈值,执行步骤204,若网络质量参数对应的参数值小于等于预设阈值,结束流程。203: The mobile terminal determines whether the parameter value corresponding to the network quality parameter is greater than a preset threshold; if the parameter value corresponding to the network quality parameter is greater than the preset threshold, step 204 is performed, and if the parameter value corresponding to the network quality parameter is less than or equal to the preset threshold, the process ends. Process.
在实际应用中,该预设阈值可以作为衡量网络质量好坏的条件,该预设阈值可以根据实际需求进行设定;在判定网络质量参数大于预设阈值时,可以确定为网络质量较差,在判定网络质量参数小于等于预设阈值时,可以确定为网络质量较好。In a practical application, the preset threshold may be used as a condition for measuring the quality of the network. The preset threshold may be set according to actual requirements; when the network quality parameter is determined to be greater than a preset threshold, the network quality may be determined to be poor. When it is determined that the network quality parameter is less than or equal to a preset threshold, it may be determined that the network quality is good.
204、移动终端根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用。204. The mobile terminal selects a corresponding application from the running application in the background according to the preset application identifier set, as the target application that needs to be closed.
具体地,在判断网络质量参数满足预设条件(即网络质量较差)时,关闭正在运行且使用网络的目标应用,为了本方案更加人性化,可以由用户设定允许移动终端进行自动处理的应用作为目标应用,通过判断当前连接网络的正在后台运行的应用是否目标应用,以确定是否对该应用进行关闭操作,从而避免误处理的问题。Specifically, when it is determined that the network quality parameter meets the preset condition (that is, the network quality is poor), the target application that is running and uses the network is closed, and in order to make the solution more user-friendly, the user may be configured to allow the mobile terminal to perform automatic processing. The application is used as the target application to determine whether the application that is currently running in the background is connected to the target application to determine whether to close the application, thereby avoiding the problem of mishandling.
比如,可以在移动终端集成一个应用处理机制,该应用处理机制可以APP的形式集成在移动终端,其可以提供一个用户可以编辑的界面,该界面可以罗列出所有移动终端中安装的应用,用户通过该界面可以选择是否将应用授权给终端系统,终端系统将授权的应用作为上述目标应用,在网络质量差时,自动处理授权的应用,如可以将微信、QQ授权给终端系统,在网络质量差时,若检测到后台有微信、QQ、新浪微博在运行,则只将微信、QQ选定为目标应用。For example, an application processing mechanism can be integrated in the mobile terminal, and the application processing mechanism can be integrated in the mobile terminal in the form of an APP, which can provide an interface that the user can edit, and the interface can list all the applications installed in the mobile terminal, and the user The interface can be used to authorize the application to the terminal system. The terminal system uses the authorized application as the target application. When the network quality is poor, the authorized application is automatically processed. For example, the WeChat and QQ can be authorized to the terminal system. If there is a WeChat, QQ, or Sina Weibo running in the background, only WeChat and QQ will be selected as the target application.
205、移动终端关闭目标应用。205. The mobile terminal closes the target application.
具体地,关闭目标应用具体可以表现为彻底杀死该应用,除了可以结束该应用程序的进程外,还可以结束该应用程序对应的进程树。Specifically, the closing of the target application may be specifically performed to completely kill the application, and in addition to ending the process of the application, the process tree corresponding to the application may be ended.
由上可知,本发明实施例提供了一种应用处理方法,通过在移动终端处于待机状态且连接网络时,接收参数获取请求,然后,根据该参数获取请求获取该网络对应的网络质量参数,并判断网络质量参数对应的参数值是否大于预设阈值,若网络质量参数对应的参数值大于预设阈值,根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用,并关闭该目标应用;该方案可以基于当前连接网络的网络质量参数来关闭正在运行且使用网络的目标应用;比如,当网络质量参数表示网络质量比较差时,可以关闭正在运行且使用网络的目标应用,该方案可以避免出现当网络质量比较差时应用程序频繁地向其网络服务器发起连接的情况,因此,可以减少应用程序的资源消耗,降低了终端的功耗以及终端的电量消耗。As can be seen from the above, an embodiment of the present invention provides an application processing method, when a mobile terminal is in a standby state and is connected to a network, receiving a parameter acquisition request, and then acquiring a network quality parameter corresponding to the network according to the parameter acquisition request, and Determining whether the parameter value corresponding to the network quality parameter is greater than a preset threshold. If the parameter value corresponding to the network quality parameter is greater than the preset threshold, the corresponding application is selected from the running application in the background according to the preset application identifier set, as the need to be closed. Target application, and close the target application; the solution can close the target application that is running and using the network based on the network quality parameter of the currently connected network; for example, when the network quality parameter indicates that the network quality is poor, the operation can be closed and used. The target application of the network, which can avoid the situation that the application frequently initiates a connection to its network server when the network quality is poor, so that the resource consumption of the application can be reduced, the power consumption of the terminal, and the power consumption of the terminal are reduced. .
本发明实施例提供一种应用处理装置,包括:接收模块、获取模块、判断模块和关闭模块;其中,An embodiment of the present invention provides an application processing apparatus, including: a receiving module, an obtaining module, a determining module, and a closing module;
所述接收模块,用于在处于待机状态且连接网络时,接收参数获取请求;The receiving module is configured to receive a parameter acquisition request when in a standby state and connected to a network;
所述获取模块,用于根据所述参数获取请求,获取所述网络对应的网络质量参数;The obtaining module is configured to acquire, according to the parameter obtaining request, a network quality parameter corresponding to the network;
所述判断模块,用于判断所述网络质量参数是否满足预设条件;The determining module is configured to determine whether the network quality parameter meets a preset condition;
所述关闭模块,用于在所述网络质量参数满足预设条件时,关闭正在运行且使用所述网络的目标应用。The shutdown module is configured to close a target application that is running and uses the network when the network quality parameter meets a preset condition.
在某些实施方式中,所述获取模块,用于根据所述参数获取请求获取预设时间段内针对网络连接的操作信息,所述网络连接为与所述网络之间的网络连接;根据所述操作信息获取所述网络对应的网络质量参数。In some embodiments, the acquiring module is configured to acquire, according to the parameter obtaining request, operation information for a network connection within a preset time period, where the network connection is a network connection with the network; The operation information acquires network quality parameters corresponding to the network.
在某些实施方式中,所述获取模块包括:发送子模块、接收子模块和获取子模块;In some implementations, the obtaining module includes: a sending submodule, a receiving submodule, and an obtaining submodule;
所述发送子模块,用于根据所述参数获取请求,每隔预设时长向相应的服务器发送心跳包;The sending submodule is configured to send a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request;
所述接收子模块,用于接收所述服务器返回的用于响应所述心跳包的应答包;The receiving submodule is configured to receive a response packet returned by the server and used to respond to the heartbeat packet;
所述获取子模块,用于获取在预设时间段内所述心跳包的发送数量以及所述应答包的接收数量;根据所述发送数量以及所述接收数量,获取所述网络对应的网络质量参数。The acquiring sub-module is configured to acquire the number of the heartbeat packets sent and the number of the received packets in the preset time period, and obtain the network quality corresponding to the network according to the number of the sending and the number of the receiving parameter.
在某些实施方式中,所述关闭模块,用于根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用;关闭所述目标应用。In some embodiments, the closing module is configured to select a corresponding application from a running application in the background according to a preset application identifier set as a target application that needs to be closed; and close the target application.
在某些实施方式中,所述判断模块,用于判断所述网络质量参数对应的参数值是否大于第二预设阈值;若是,则判定所述网络质量参数满足预设条件;若否,则判定所述网络质量参数不满足预设条件。In some embodiments, the determining module is configured to determine whether the parameter value corresponding to the network quality parameter is greater than a second preset threshold; if yes, determining that the network quality parameter meets a preset condition; if not, It is determined that the network quality parameter does not satisfy the preset condition.
本发明实施例提供的应用处理装置可以集成在终端中,该终端具体可以包括手机、平板电脑、笔记本电脑等电子设备。如图3所示,该应用处理装置可以包括:接收模块301、获取模块302、判断模块303和关闭模块304,其中:The application processing device provided by the embodiment of the present invention may be integrated into a terminal, and the terminal may specifically include an electronic device such as a mobile phone, a tablet computer, or a notebook computer. As shown in FIG. 3, the application processing apparatus may include: a receiving module 301, an obtaining module 302, a determining module 303, and a closing module 304, where:
该接收模块301,用于在处于待机状态且连接网络时,接收参数获取请求;The receiving module 301 is configured to receive a parameter acquisition request when in a standby state and connected to the network;
该获取模块302,用于根据该参数获取请求,获取该网络对应的网络质量参数;The obtaining module 302 is configured to obtain a network quality parameter corresponding to the network according to the parameter obtaining request.
该判断模块303,用于判断该网络质量参数是否满足预设条件;The determining module 303 is configured to determine whether the network quality parameter meets a preset condition;
该关闭模块304,用于在该网络质量参数满足预设条件时,关闭正在运行且使用网络的目标应用。The shutdown module 304 is configured to close the target application that is running and uses the network when the network quality parameter meets the preset condition.
在某些实施方式中,该获取模块302,具体可以用于根据该参数获取请求,获取预设时间段内针对网络连接的操作信息,该网络连接为与该网络之间的网络连接;根据该操作信息获取该网络对应的网络质量参数。In some embodiments, the obtaining module 302 is specifically configured to acquire, according to the parameter obtaining request, operation information for a network connection within a preset time period, where the network connection is a network connection with the network; The operation information acquires network quality parameters corresponding to the network.
在某些实施方式中,如图4所示,该获取模块302具体可以包括:发送子模块3021、接收子模块3022和获取子模块3023;其中,In some embodiments, as shown in FIG. 4, the obtaining module 302 may specifically include: a sending submodule 3021, a receiving submodule 3022, and an obtaining submodule 3023;
该发送子模块3021,用于根据该参数获取请求,每隔预设时长向相应的服务器发送心跳包;The sending sub-module 3021 is configured to send a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request.
该接收子模块3022,用于接收该服务器返回的用于响应该心跳包的应答包;The receiving submodule 3022 is configured to receive a response packet returned by the server and used to respond to the heartbeat packet.
该获取子模块3023,用于获取在预设时间段内该心跳包的发送数量以及该应答包的接收数量;根据该发送数量以及该接收数量,获取该网络对应的网络质量参数。The acquiring sub-module 3023 is configured to acquire the number of the heartbeat packets sent and the number of the received packets in the preset time period. The network quality parameters corresponding to the network are obtained according to the number of the sending packets and the received number.
在某些实施方式中,该关闭模块304,具体可以用于根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用;关闭该目标应用。In some embodiments, the closing module 304 is specifically configured to select a corresponding application from the running application in the background according to the preset application identifier set as the target application that needs to be closed; and close the target application.
在某些实施方式中,该判断模块303,具体可以用于判断该网络质量参数对应的参数值是否大于第二预设阈值;若网络质量参数对应的参数值大于第二预设阈值,则判定该网络质量参数满足预设条件;若网络质量参数对应的参数值小于等于第二预设阈值,则判定该网络质量参数不满足预设条件。In some implementations, the determining module 303 may be specifically configured to determine whether the parameter value corresponding to the network quality parameter is greater than a second preset threshold; if the parameter value corresponding to the network quality parameter is greater than the second preset threshold, determining The network quality parameter meets the preset condition; if the parameter value corresponding to the network quality parameter is less than or equal to the second preset threshold, it is determined that the network quality parameter does not satisfy the preset condition.
由上可知,本发明实施例提供的应用处理装置,在处于待机状态且连接网络时,接收模块301接收参数获取请求,获取模块302根据该参数获取请求获取该网络对应的网络质量参数,判断模块303判断该网络质量参数是否满足预设条件,若网络质量参数满足预设条件,则由关闭模块304关闭正在运行且使用网络的目标应用;该方案可以基于当前连接网络的网络质量参数关闭正在运行且使用网络的目标应用;比如,当网络质量参数表示网络质量比较差时,可以关闭正在运行且使用网络的目标应用,该方案可以避免出现当网络质量比较差时应用程序频繁地向其网络服务器发起连接的情况,因此,可以减少应用程序的资源消耗,降低了终端的功耗以及终端的电量消耗。It can be seen that, when the application processing device provided by the embodiment of the present invention is in a standby state and is connected to the network, the receiving module 301 receives the parameter obtaining request, and the obtaining module 302 obtains the network quality parameter corresponding to the network according to the parameter obtaining request, and determines the module. 303: determining whether the network quality parameter meets a preset condition. If the network quality parameter meets the preset condition, the shutdown module 304 closes the target application that is running and uses the network; the solution may be closed based on the network quality parameter of the currently connected network. And use the target application of the network; for example, when the network quality parameter indicates that the network quality is poor, the target application that is running and using the network can be closed, and the solution can avoid the application frequently to the network server when the network quality is poor. The situation of initiating a connection, therefore, can reduce the resource consumption of the application, reduce the power consumption of the terminal, and the power consumption of the terminal.
具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。For the specific implementation, the foregoing modules may be implemented as a separate entity, or may be implemented in any combination, and may be implemented as the same or a plurality of entities. For the specific implementation of the foregoing modules, refer to the foregoing method embodiments, and details are not described herein again.
本发明实施例还提供一种电子设备,该电子设备可以是智能手机、平板电脑等终端。图5所示,电子设备400包括处理器401、存储器402、显示屏403以及控制电路404。其中,处理器401分别与存储器402、显示屏403、控制电路404电性连接。The embodiment of the invention further provides an electronic device, which may be a terminal such as a smart phone or a tablet computer. As shown in FIG. 5, the electronic device 400 includes a processor 401, a memory 402, a display screen 403, and a control circuit 404. The processor 401 is electrically connected to the memory 402, the display screen 403, and the control circuit 404, respectively.
处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备400的各个部分,通过运行或加载存储在存储器402内的应用程序,以及调用存储在存储器402内的数据,执行电子设备400的各种功能和处理数据,从而对电子设备400进行整体监控。The processor 401 is a control center of the electronic device 400, and connects various parts of the entire electronic device 400 using various interfaces and lines, by running or loading an application stored in the memory 402, and calling data stored in the memory 402, executing The various functions and processing data of the electronic device 400 enable overall monitoring of the electronic device 400.
在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能:In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the process of one or more applications into the memory 402 according to the following steps, and is stored and stored in the memory 402 by the processor 401. In the application, thus implementing various functions:
在处于待机状态且连接网络时,接收参数获取请求;Receiving a parameter acquisition request while in a standby state and connected to the network;
根据所述参数获取请求,获取所述网络对应的网络质量参数;Obtaining, according to the parameter obtaining request, a network quality parameter corresponding to the network;
判断所述网络质量参数是否满足预设条件;Determining whether the network quality parameter meets a preset condition;
若所述网络质量参数满足预设条件,则关闭正在运行且使用网络的目标应用。If the network quality parameter meets the preset condition, the target application that is running and using the network is closed.
在某些实施方式中,所述处理器401可以用于执行以下步骤:In some embodiments, the processor 401 can be configured to perform the following steps:
根据所述参数获取请求获取预设时间段内针对网络连接的操作信息,其中所述网络连接为与所述网络之间的网络连接;Obtaining, according to the parameter obtaining request, operation information for a network connection within a preset time period, where the network connection is a network connection with the network;
根据所述操作信息获取所述网络对应的网络质量参数。Obtaining, according to the operation information, a network quality parameter corresponding to the network.
在某些实施方式中,所述操作信息包括:断开所述网络连接的断开频率和重新建立所述网络连接的连接频率;进而所述处理器401用于执行以下步骤:In some embodiments, the operation information includes: disconnecting a disconnection frequency of the network connection and re-establishing a connection frequency of the network connection; and the processor 401 is configured to perform the following steps:
获取所述断开频率与第一预设频率之间的第一比较结果、以及所述连接频率与第二预设频率之间的第二比较结果;Obtaining a first comparison result between the disconnection frequency and the first preset frequency, and a second comparison result between the connection frequency and the second preset frequency;
根据所述第一比较结果和所述第二比较结果获取所述网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
在某些实施方式中,所述处理器401可以用于执行以下步骤:In some embodiments, the processor 401 can be configured to perform the following steps:
根据所述参数获取请求,每隔预设时长向相应的服务器发送心跳包;Sending a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request;
接收所述服务器返回的用于响应所述心跳包的应答包;Receiving a response packet returned by the server for responding to the heartbeat packet;
获取在预设时间段内所述心跳包的发送数量以及所述应答包的接收数量;Obtaining, by the preset time period, the number of the heartbeat packets sent and the number of the response packets received;
根据发送数量以及所述接收数量,获取所述网络对应的网络质量参数。Obtaining network quality parameters corresponding to the network according to the number of transmissions and the number of received.
在某些实施方式中,所述处理器401可以用于执行以下步骤:In some embodiments, the processor 401 can be configured to perform the following steps:
获取所述发送数量与所述接收数量之间的数量差;Obtaining a quantity difference between the number of transmissions and the number of receptions;
获取数量差与第一预设阈值之间的比较结果;Obtaining a comparison result between the quantity difference and the first preset threshold;
根据所述比较结果获取所述网络对应的网络质量参数。Obtaining network quality parameters corresponding to the network according to the comparison result.
在某些实施方式中,所述处理器401可以用于执行以下步骤:根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用;关闭所述目标应用。In some embodiments, the processor 401 may be configured to: select a corresponding application from a running application in the background according to a preset application identifier set, as a target application that needs to be closed; and close the target application. .
在某些实施方式中,所述处理器401可以用于执行以下步骤:In some embodiments, the processor 401 can be configured to perform the following steps:
判断所述网络质量参数对应的参数值是否大于第二预设阈值;Determining whether a parameter value corresponding to the network quality parameter is greater than a second preset threshold;
若所述网络质量参数对应的参数值大于第二预设阈值,则判定所述网络质量参数满足预设条件;If the parameter value corresponding to the network quality parameter is greater than the second preset threshold, determining that the network quality parameter meets the preset condition;
若所述网络质量参数对应的参数值小于等于第二预设阈值,则判定所述网络质量参数不满足预设条件。If the parameter value corresponding to the network quality parameter is less than or equal to the second preset threshold, determining that the network quality parameter does not meet the preset condition.
存储器402可以用于存储应用程序和数据。存储器402存储的应用程序中包含有可在处理器中执行的指令。应用程序可以组成各种功能模块。处理器401通过运行存储在存储器402的应用程序,从而执行各种功能应用以及数据处理。Memory 402 can be used to store applications and data. The application stored in the memory 402 contains instructions that are executable in the processor. Applications can form various functional modules. The processor 401 executes various functional applications and data processing by running an application stored in the memory 402.
显示屏403可以用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 403 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the electronic device, which can be composed of images, text, icons, video, and any combination thereof.
控制电路404与显示屏403电性连接,用于控制显示屏403显示信息。The control circuit 404 is electrically connected to the display screen 403 for controlling the display screen 403 to display information.
在某些实施例中,如图6所示,电子设备400还包括:射频电路405、输入单元406、音频电路407、传感器408以及电源409。其中,处理器401分别与射频电路405、输入单元406、音频电路407、传感器408以及电源409电性连接。In some embodiments, as shown in FIG. 6, the electronic device 400 further includes a radio frequency circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power source 409. The processor 401 is electrically connected to the radio frequency circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409, respectively.
射频电路405可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 405 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices through wireless communication, and to transmit and receive signals with network devices or other electronic devices.
输入单元406可以用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元406可以包括指纹识别模组。The input unit 406 can be configured to receive input numbers, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls. The input unit 406 can include a fingerprint identification module.
音频电路407可以通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 407 can provide an audio interface between the user and the electronic device through a speaker and a microphone.
电子设备400还可以包括至少一种传感器408,比如光传感器、运动传感器以及其他传感器。Electronic device 400 may also include at least one type of sensor 408, such as a light sensor, motion sensor, and other sensors.
电源409可以用于给电子设备400的各个部件供电。在一些实施例中,电源409可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Power source 409 can be used to power various components of electronic device 400. In some embodiments, the power supply 409 can be logically coupled to the processor 401 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
尽管图6中未示出,电子设备400还可以包括摄像头、蓝牙模块等部件,在此不再赘述。Although not shown in FIG. 6, the electronic device 400 may further include components such as a camera, a Bluetooth module, and the like, and details are not described herein again.
本发明实施例提供的电子设备,通过在电子设备处于待机状态且连接网络时,接收参数获取请求,然后,根据该参数获取请求获取该网络对应的网络质量参数,判断该网络质量参数是否满足预设条件,若该网络质量参数满足预设条件,则关闭正在运行且使用网络的目标应用。该方案可以基于当前连接网络的网络质量参数关闭正在运行且使用网络的目标应用;比如,当网络质量参数表示网络质量比较差时,可以关闭正在运行且使用网络的目标应用,该方案可以避免出现当网络质量比较差时应用程序频繁地向其网络服务器发起连接的情况,因此,可以减少应用程序的资源消耗,降低了电子设备的功耗以及电子设备的电量消耗。The electronic device provided by the embodiment of the present invention receives a parameter acquisition request when the electronic device is in a standby state and connects to the network, and then obtains a network quality parameter corresponding to the network according to the parameter acquisition request, and determines whether the network quality parameter satisfies the pre-determination. Set the condition, if the network quality parameter meets the preset condition, close the target application that is running and using the network. The solution can close the target application that is running and uses the network based on the network quality parameter of the currently connected network; for example, when the network quality parameter indicates that the network quality is poor, the target application that is running and using the network can be closed, and the solution can be avoided. When the network quality is relatively poor, the application frequently initiates a connection to its network server. Therefore, the resource consumption of the application can be reduced, and the power consumption of the electronic device and the power consumption of the electronic device are reduced.
本发明实施例提供一种存储介质,所述存储介质中存储有多条指令,所述多条指令适于由处理器加载以执行上述方法实施例所述的应用处理方法,比如:在处于待机状态且连接网络时,接收参数获取请求;根据所述参数获取请求,获取所述网络对应的网络质量参数;判断所述网络质量参数是否满足预设条件;若所述网络质量参数满足预设条件,则关闭正在运行且使用网络的目标应用。The embodiment of the present invention provides a storage medium, where the storage medium stores a plurality of instructions, and the plurality of instructions are adapted to be loaded by a processor to execute the application processing method described in the foregoing method embodiment, for example, in standby mode. Receiving a parameter acquisition request when the network is connected to the network; obtaining a network quality parameter corresponding to the network according to the parameter obtaining request; determining whether the network quality parameter meets a preset condition; if the network quality parameter meets a preset condition , then close the target application that is running and using the network.
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,如存储在终端的存储器中,并被该终端内的至少一个处理器执行,在执行过程中可包括如信息发布方法的实施例的流程。其中,存储介质可以包括:只读存储器(Read Only Memory,ROM)、随机存取记忆体(Random Access Memory,RAM)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, such as It is stored in the memory of the terminal and executed by at least one processor within the terminal, and may include a flow of an embodiment of the information distribution method during execution. Wherein, the storage medium may include: a read only memory (Read Only Memory, ROM), Random Access Memory (RAM), disk or CD.
以上对本发明实施例提供的一种应用处理方法、装置、存储介质以及电子设备进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。An application processing method, device, storage medium, and electronic device provided by the embodiments of the present invention are described in detail. Each functional module may be integrated into one processing chip, or each module may exist physically or separately. Or more than two modules are integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The principles and embodiments of the present invention are described herein with reference to specific examples. The description of the above embodiments is only for the purpose of understanding the method of the present invention and the core idea thereof. Also, those skilled in the art according to the present invention The present invention is not limited by the scope of the present invention.

Claims (20)

  1. 一种应用处理方法,其中,包括:An application processing method, including:
    在处于待机状态且连接网络时,接收参数获取请求;Receiving a parameter acquisition request while in a standby state and connected to the network;
    根据所述参数获取请求,获取所述网络对应的网络质量参数;Obtaining, according to the parameter obtaining request, a network quality parameter corresponding to the network;
    判断所述网络质量参数是否满足预设条件;Determining whether the network quality parameter meets a preset condition;
    若所述网络质量参数满足预设条件,则关闭正在运行且使用所述网络的目标应用。If the network quality parameter satisfies a preset condition, the target application running and using the network is closed.
  2. 如权利要求1所述的应用处理方法,其中,所述根据所述参数获取请求获取所述网络对应的网络质量参数的步骤具体包括:The application processing method according to claim 1, wherein the step of acquiring the network quality parameter corresponding to the network according to the parameter obtaining request comprises:
    根据所述参数获取请求获取预设时间段内针对网络连接的操作信息,其中所述网络连接为与所述网络之间的网络连接;Obtaining, according to the parameter obtaining request, operation information for a network connection within a preset time period, where the network connection is a network connection with the network;
    根据所述操作信息获取所述网络对应的网络质量参数。Obtaining, according to the operation information, a network quality parameter corresponding to the network.
  3. 如权利要求2所述的应用处理方法,其中,所述操作信息包括:断开所述网络连接的断开频率和重新建立所述网络连接的连接频率;The application processing method according to claim 2, wherein the operation information comprises: disconnecting a disconnection frequency of the network connection and re-establishing a connection frequency of the network connection;
    所述根据所述操作信息获取所述网络对应的网络质量参数的步骤具体包括:The step of acquiring the network quality parameter corresponding to the network according to the operation information specifically includes:
    获取所述断开频率与第一预设频率之间的第一比较结果、以及所述连接频率与第二预设频率之间的第二比较结果;Obtaining a first comparison result between the disconnection frequency and the first preset frequency, and a second comparison result between the connection frequency and the second preset frequency;
    根据所述第一比较结果和所述第二比较结果获取所述网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
  4. 如权利要求1所述的应用处理方法,其中,所述根据所述参数获取请求,获取所述网络对应的网络质量参数的步骤具体包括:The application processing method according to claim 1, wherein the step of acquiring the network quality parameter corresponding to the network according to the parameter obtaining request comprises:
    根据所述参数获取请求,每隔预设时长向相应的服务器发送心跳包;Sending a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request;
    接收所述服务器返回的用于响应所述心跳包的应答包;Receiving a response packet returned by the server for responding to the heartbeat packet;
    获取在预设时间段内所述心跳包的发送数量以及所述应答包的接收数量;Obtaining, by the preset time period, the number of the heartbeat packets sent and the number of the response packets received;
    根据所述发送数量以及所述接收数量,获取所述网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the number of the sending and the quantity of the receiving.
  5. 如权利要求4所述的应用处理方法,其中,所述根据发送数量以及所述接收数量,获取所述网络对应的网络质量参数的步骤具体包括:The application processing method according to claim 4, wherein the step of acquiring the network quality parameter corresponding to the network according to the number of the transmissions and the number of the receiving comprises:
    获取所述发送数量与所述接收数量之间的数量差;Obtaining a quantity difference between the number of transmissions and the number of receptions;
    获取所述数量差与第一预设阈值之间的比较结果;Obtaining a comparison result between the quantity difference and a first preset threshold;
    根据所述比较结果获取所述网络对应的网络质量参数。Obtaining network quality parameters corresponding to the network according to the comparison result.
  6. 如权利要求1所述的应用处理方法,其中,所述关闭正在运行且使用所述网络的目标应用的步骤具体包括:The application processing method according to claim 1, wherein the step of closing the target application that is running and using the network specifically comprises:
    根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用;Selecting a corresponding application from the running application in the background according to the preset application identifier set as the target application that needs to be closed;
    关闭所述目标应用。Close the target app.
  7. 如权利要求1所述的应用处理方法,其中,所述判断所述网络质量参数是否满足预设条件的步骤具体包括:The application processing method of claim 1, wherein the step of determining whether the network quality parameter meets a preset condition comprises:
    判断所述网络质量参数对应的参数值是否大于第二预设阈值;Determining whether a parameter value corresponding to the network quality parameter is greater than a second preset threshold;
    若所述网络质量参数对应的参数值大于第二预设阈值,则判定所述网络质量参数满足预设条件;If the parameter value corresponding to the network quality parameter is greater than the second preset threshold, determining that the network quality parameter meets the preset condition;
    若所述网络质量参数对应的参数值小于等于第二预设阈值,则判定所述网络质量参数不满足预设条件。If the parameter value corresponding to the network quality parameter is less than or equal to the second preset threshold, determining that the network quality parameter does not meet the preset condition.
  8. 一种应用处理装置,其中,包括:接收模块、获取模块、判断模块和关闭模块;其中,An application processing device, comprising: a receiving module, an obtaining module, a determining module, and a closing module; wherein
    所述接收模块,用于在处于待机状态且连接网络时,接收参数获取请求;The receiving module is configured to receive a parameter acquisition request when in a standby state and connected to a network;
    所述获取模块,用于根据所述参数获取请求,获取所述网络对应的网络质量参数;The obtaining module is configured to acquire, according to the parameter obtaining request, a network quality parameter corresponding to the network;
    所述判断模块,用于判断所述网络质量参数是否满足预设条件;The determining module is configured to determine whether the network quality parameter meets a preset condition;
    所述关闭模块,用于在所述网络质量参数满足预设条件时,关闭正在运行且使用所述网络的目标应用。The shutdown module is configured to close a target application that is running and uses the network when the network quality parameter meets a preset condition.
  9. 如权利要求8所述的应用处理装置,其中,所述获取模块,用于根据所述参数获取请求获取预设时间段内针对网络连接的操作信息,所述网络连接为与所述网络之间的网络连接;根据所述操作信息获取所述网络对应的网络质量参数。The application processing device according to claim 8, wherein the obtaining module is configured to acquire, according to the parameter obtaining request, operation information for a network connection within a preset time period, where the network connection is between the network and the network And obtaining, according to the operation information, a network quality parameter corresponding to the network.
  10. 如权利要求8所述的应用处理装置,其中,所述获取模块包括:发送子模块、接收子模块和获取子模块;The application processing device of claim 8, wherein the obtaining module comprises: a sending submodule, a receiving submodule, and an obtaining submodule;
    所述发送子模块,用于根据所述参数获取请求,每隔预设时长向相应的服务器发送心跳包;The sending submodule is configured to send a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request;
    所述接收子模块,用于接收所述服务器返回的用于响应所述心跳包的应答包;The receiving submodule is configured to receive a response packet returned by the server and used to respond to the heartbeat packet;
    所述获取子模块,用于获取在预设时间段内所述心跳包的发送数量以及所述应答包的接收数量;根据所述发送数量以及所述接收数量,获取所述网络对应的网络质量参数。The acquiring sub-module is configured to acquire the number of the heartbeat packets sent and the number of the received packets in the preset time period, and obtain the network quality corresponding to the network according to the number of the sending and the number of the receiving parameter.
  11. 如权利要求8所述的应用处理装置,其中,所述关闭模块,用于根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用;关闭所述目标应用。The application processing device according to claim 8, wherein the shutdown module is configured to select a corresponding application from a running application in the background according to a preset application identifier set as a target application that needs to be closed; application.
  12. 如权利要求8所述的应用处理装置,其中,所述判断模块,用于判断所述网络质量参数对应的参数值是否大于第二预设阈值;若是,则判定所述网络质量参数满足预设条件;若否,则判定所述网络质量参数不满足预设条件。The application processing device according to claim 8, 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 yes, determining that the network quality parameter meets a preset Condition; if not, it is determined that the network quality parameter does not satisfy the preset condition.
  13. 一种存储介质,其中,所述存储介质中存储有多条指令,所述多条指令适于由处理器加载以执行如权利要求1至7任一项所述的方法。A storage medium, wherein the storage medium stores a plurality of instructions, the plurality of instructions being adapted to be loaded by a processor to perform the method of any one of claims 1 to 7.
  14. 一种电子设备,其中,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:An electronic device, comprising a processor and a memory, the memory storing a plurality of instructions, the processor loading instructions in the memory for performing the following steps:
    在处于待机状态且连接网络时,接收参数获取请求;Receiving a parameter acquisition request while in a standby state and connected to the network;
    根据所述参数获取请求,获取所述网络对应的网络质量参数;Obtaining, according to the parameter obtaining request, a network quality parameter corresponding to the network;
    判断所述网络质量参数是否满足预设条件;Determining whether the network quality parameter meets a preset condition;
    若所述网络质量参数满足预设条件,则关闭正在运行且使用所述网络的目标应用。If the network quality parameter satisfies a preset condition, the target application running and using the network is closed.
  15. 如权利要求14所述的电子设备,其中,所述处理器用于执行以下步骤:The electronic device of claim 14 wherein said processor is operative to perform the steps of:
    根据所述参数获取请求获取预设时间段内针对网络连接的操作信息,其中所述网络连接为与所述网络之间的网络连接;Obtaining, according to the parameter obtaining request, operation information for a network connection within a preset time period, where the network connection is a network connection with the network;
    根据所述操作信息获取所述网络对应的网络质量参数。Obtaining, according to the operation information, a network quality parameter corresponding to the network.
  16. 如权利要求15所述的电子设备,其中,所述操作信息包括:断开所述网络连接的断开频率和重新建立所述网络连接的连接频率;所述处理器用于执行以下步骤:The electronic device of claim 15, wherein the operation information comprises: disconnecting a disconnection frequency of the network connection and reestablishing a connection frequency of the network connection; the processor is configured to perform the following steps:
    获取所述断开频率与第一预设频率之间的第一比较结果、以及所述连接频率与第二预设频率之间的第二比较结果;Obtaining a first comparison result between the disconnection frequency and the first preset frequency, and a second comparison result between the connection frequency and the second preset frequency;
    根据所述第一比较结果和所述第二比较结果获取所述网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the first comparison result and the second comparison result.
  17. 如权利要求14所述的电子设备,其中,所述处理器用于执行以下步骤:The electronic device of claim 14 wherein said processor is operative to perform the steps of:
    根据所述参数获取请求,每隔预设时长向相应的服务器发送心跳包;Sending a heartbeat packet to the corresponding server every preset time according to the parameter obtaining request;
    接收所述服务器返回的用于响应所述心跳包的应答包;Receiving a response packet returned by the server for responding to the heartbeat packet;
    获取在预设时间段内所述心跳包的发送数量以及所述应答包的接收数量;Obtaining, by the preset time period, the number of the heartbeat packets sent and the number of the response packets received;
    根据所述发送数量以及所述接收数量,获取所述网络对应的网络质量参数。Obtaining a network quality parameter corresponding to the network according to the number of the sending and the quantity of the receiving.
  18. 如权利要求17所述的电子设备,其中,所述处理器用于执行以下步骤:The electronic device of claim 17 wherein said processor is operative to perform the steps of:
    获取所述发送数量与所述接收数量之间的数量差;Obtaining a quantity difference between the number of transmissions and the number of receptions;
    获取所述数量差与第一预设阈值之间的比较结果;Obtaining a comparison result between the quantity difference and a first preset threshold;
    根据所述比较结果获取所述网络对应的网络质量参数。Obtaining network quality parameters corresponding to the network according to the comparison result.
  19. 如权利要求14所述的电子设备,其中,所述处理器用于执行以下步骤:The electronic device of claim 14 wherein said processor is operative to perform the steps of:
    根据预设应用标识集合从后台正在运行的应用中选取相应的应用,以作为需要关闭的目标应用;Selecting a corresponding application from the running application in the background according to the preset application identifier set as the target application that needs to be closed;
    关闭所述目标应用。Close the target app.
  20. 如权利要求14所述的电子设备,其中,所述处理器用于执行以下步骤:The electronic device of claim 14 wherein said processor is operative to perform the steps of:
    判断所述网络质量参数对应的参数值是否大于第二预设阈值;Determining whether a parameter value corresponding to the network quality parameter is greater than a second preset threshold;
    若所述网络质量参数对应的参数值大于第二预设阈值,则判定所述网络质量参数满足预设条件;If the parameter value corresponding to the network quality parameter is greater than the second preset threshold, determining that the network quality parameter meets the preset condition;
    若所述网络质量参数对应的参数值小于等于第二预设阈值,则判定所述网络质量参数不满足预设条件。If the parameter value corresponding to the network quality parameter is less than or equal to the second preset threshold, determining that the network quality parameter does not meet the preset condition.
PCT/CN2017/086480 2016-05-31 2017-05-29 Application processing method and apparatus, storage medium, and electronic device WO2017206883A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2017206883A1 true WO2017206883A1 (en) 2017-12-07

Family

ID=57447405

Family Applications (1)

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

Country Status (2)

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245076A (en) * 2019-05-21 2019-09-17 深圳壹账通智能科技有限公司 Method, apparatus and terminal device are determined based on the factor influence degree of functional test
CN113259759A (en) * 2021-05-20 2021-08-13 深圳市雷鸟网络传媒有限公司 Network connection state evaluation method and device, terminal equipment and storage medium
CN114173390A (en) * 2021-12-06 2022-03-11 深圳Tcl新技术有限公司 Network control method, network control device, electronic equipment and storage medium
CN114727360A (en) * 2020-12-22 2022-07-08 深圳Tcl新技术有限公司 Network connection equipment management method, device, terminal equipment and storage medium

Families Citing this family (8)

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

Citations (5)

* 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
CN101917516A (en) * 2010-08-16 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Power-saving processing method and system for mobile terminal, and mobile terminal
CN103731903A (en) * 2012-10-11 2014-04-16 索尼公司 Information processing apparatus, communication system, information processing method, and program
CN105183132A (en) * 2015-08-18 2015-12-23 小米科技有限责任公司 Energy conservation mode starting method and apparatus
CN106102143A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of application processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365399B (en) * 2013-06-26 2017-02-08 贝壳网际(北京)安全技术有限公司 Control method and device for application object of mobile terminal
CN104811930B (en) * 2015-05-19 2018-09-11 广东小天才科技有限公司 A kind of method for controlling network flow and system of mobile terminal

Patent Citations (5)

* 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
CN101917516A (en) * 2010-08-16 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Power-saving processing method and system for mobile terminal, and mobile terminal
CN103731903A (en) * 2012-10-11 2014-04-16 索尼公司 Information processing apparatus, communication system, information processing method, and program
CN105183132A (en) * 2015-08-18 2015-12-23 小米科技有限责任公司 Energy conservation mode starting method and apparatus
CN106102143A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of application processing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245076A (en) * 2019-05-21 2019-09-17 深圳壹账通智能科技有限公司 Method, apparatus and terminal device are determined based on the factor influence degree of functional test
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
CN114173390A (en) * 2021-12-06 2022-03-11 深圳Tcl新技术有限公司 Network control method, network control device, electronic equipment and storage medium
CN114173390B (en) * 2021-12-06 2024-01-19 深圳Tcl新技术有限公司 Network control method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106102143A (en) 2016-11-09
CN106102143B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
WO2017206883A1 (en) Application processing method and apparatus, storage medium, and electronic device
WO2017206875A1 (en) Data packet-based processing method and apparatus, storage medium, and electronic device
WO2018076866A1 (en) Data processing method, device, storage medium, electronic device and server
WO2017206878A1 (en) Wakeup lock-based processing method and apparatus, storage medium, and electronic device
WO2015167258A1 (en) Proximity communication method and apparatus
WO2018076812A1 (en) Data request response method and device, storage medium, server and system
WO2014019139A1 (en) Method, device and system for implementing radio resource control connection release
WO2017206862A1 (en) Bright screen lock-based processing method and apparatus, storage medium, and electronic device
WO2018076819A1 (en) Data upload method, apparatus, storage medium, electronic device and system
WO2018166199A1 (en) Method for adjusting precision level of positioning, device, storage medium and electronic device
WO2014171728A1 (en) Method and apparatus for setting up/releasing radio resource control connection between evolved node b and user equipment in communication system
WO2018076864A1 (en) Data synchronization method, apparatus, storage medium and electronic device
WO2016065619A1 (en) Data traffic management method and device
WO2018076840A1 (en) Data sharing method, device, storage medium and server
WO2015032091A1 (en) Cell switching method, terminal and network device
WO2018076811A1 (en) Data sharing method, device, system, storage medium and electronic device
WO2020067677A1 (en) Method for operating application requiring communication with external device, and electronic device therefor
WO2021025401A1 (en) Electronic device for reducing power consumption and operating method thereof
WO2018161581A1 (en) Control method, device, storage medium, and electronic apparatus for broadcast sending
WO2017206880A1 (en) Terminal data processing method and apparatus, storage medium, and electronic device
WO2018076842A1 (en) Data backup method, device, system, storage medium, and electronic device
WO2017206867A1 (en) Sensor shutdown method and apparatus, storage medium, and electronic device
WO2018099415A1 (en) 5g platform-oriented node discovery method and system, and electronic device
WO2018076873A1 (en) Data sharing method, apparatus, medium, electronic device and system
WO2018076830A1 (en) Method and device for adjusting data synchronization cycle, electronic device, storage medium, and system

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17805828

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17805828

Country of ref document: EP

Kind code of ref document: A1