CN109526043B - Application program setting method and device - Google Patents

Application program setting method and device Download PDF

Info

Publication number
CN109526043B
CN109526043B CN201710848147.XA CN201710848147A CN109526043B CN 109526043 B CN109526043 B CN 109526043B CN 201710848147 A CN201710848147 A CN 201710848147A CN 109526043 B CN109526043 B CN 109526043B
Authority
CN
China
Prior art keywords
application program
network
networked
push message
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710848147.XA
Other languages
Chinese (zh)
Other versions
CN109526043A (en
Inventor
侯柏岑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201710848147.XA priority Critical patent/CN109526043B/en
Publication of CN109526043A publication Critical patent/CN109526043A/en
Application granted granted Critical
Publication of CN109526043B publication Critical patent/CN109526043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a setting method and a setting device of an application program, which are used for monitoring the state of a networked application program in order to reduce the consumption of electric quantity of a terminal, and if the networked application program is not used, the networked application program is not required to be connected with a network, so that the connection between the networked application program and the network is closed, and the connection between a push channel and the network is kept. At this time, the application program is converted from networking to non-networking, the terminal does not need to provide the electric energy required by networking for the application program, the consumption of the electric energy of the application program to the terminal is automatically reduced, and the push channel can also receive the push message in real time through the network because the connection between the networking application program and the network is only disconnected, and the real-time performance of receiving the push message of the application program is ensured.

Description

Application program setting method and device
Technical Field
The embodiment of the invention relates to the technical field of networks, in particular to a setting method and device of an application program.
Background
With the development of network technologies, more and more Applications (APP) are developed for terminals, and each application may provide a plurality of application functions to a user, for example: shopping function, navigation function, instant messaging function, car-limiting function, etc., greatly facilitates the life of the user.
The terminal is provided with a power saving mode in order to save power. And inquiring whether the power saving mode is started or not by a user when the electric quantity of the terminal is lower than a preset first threshold value. When the user triggers the terminal to start the power saving mode, the terminal adopts an APP which is closed and operated in the background, and changes the display setting and other modes of the terminal, so that the power consumption of the terminal is reduced.
However, in the above manner of saving the power of the terminal, the user needs to perform the operation of triggering the power saving mode on the terminal, so that the power saving mode can be started, and the operation is complex.
Disclosure of Invention
The technical problem solved by the embodiment of the invention is to provide a setting method and a setting device for an application program, so that the connection between the networked application program and a network can be automatically closed, the connection between a pushing channel and the network can be maintained, the consumption of terminal electric quantity is reduced, and the instantaneity of receiving pushing information of the application program can be ensured.
Therefore, the technical scheme for solving the technical problems in the embodiment of the invention is as follows:
in order to solve the above problems, an embodiment of the present invention provides a method for setting an application, including:
monitoring whether the networked application is in an unused state;
and when the networked application program is in the unused state, closing the connection between the networked application program and the network, and keeping the connection between the push channel and the network.
Optionally, the method further comprises:
Receiving a push message through the push channel;
confirming whether an application program corresponding to the push message is connected with a network or not;
and when the application program corresponding to the push message is not connected with the network, restoring the connection between the application program corresponding to the push message and the network.
Optionally, the method further comprises:
And monitoring the reading operation of the push message, and executing the confirmation of whether the application program corresponding to the push message is connected with a network or not when the reading operation of the push message is monitored.
Optionally, the method further comprises:
And confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and executing restoration of the connection between the application program corresponding to the push message and the network when the application program corresponding to the push message is allowed to access the network connected with the terminal.
Optionally, the monitoring whether the networked application is in an unused state includes:
monitoring whether the networked application program is in an unopened state;
Determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
Optionally, the method further comprises:
monitoring whether a recovery networking condition is met;
when the networking recovery condition is met, confirming the application programs which are not networked;
and restoring the connection of the non-networked application program and the network.
In a second aspect, an embodiment of the present invention provides an apparatus for setting an application, where the apparatus includes:
The state monitoring module is used for monitoring whether the networked application program is in an unused state;
a closing module, configured to close connection between the networked application and a network when the networked application is in the unused state, and maintain connection between a push channel and the network
Optionally, the apparatus further includes:
The receiving module is used for receiving the push message through the push channel;
the first confirming module is used for confirming whether the application program corresponding to the push message is connected with a network or not;
And the first recovery module is used for recovering the connection between the application program corresponding to the push message and the network when the application program corresponding to the push message is not connected with the network.
Optionally, the apparatus further includes:
the operation monitoring module is used for monitoring the reading operation of the push message, and triggering the first confirmation module when the reading operation of the push message is monitored.
Optionally, the apparatus further includes:
And the second confirming module is used for confirming whether the network connected with the application program access terminal corresponding to the push message is allowed or not, and triggering the first recovering module when the network connected with the application program access terminal corresponding to the push message is allowed.
Optionally, the state monitoring module includes:
The first monitoring unit is used for monitoring whether the networked application program is in an unopened state;
A determining unit configured to determine that the networked application is in the unused state when the networked application is in an unopened state;
and the second monitoring unit is used for monitoring whether the networked application program is in an unused state when the networked application program is in an opened state.
Optionally, the apparatus further includes:
the networking monitoring module is used for monitoring whether the recovery networking condition is met;
a third confirmation module, configured to confirm an application program that is not networked when the recovery networking condition is satisfied;
And the second recovery module is used for recovering the connection of the non-networked application program and the network.
In a third aspect, embodiments of the present invention provide an electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
monitoring whether the networked application is in an unused state;
and when the networked application program is in the unused state, closing the connection between the networked application program and the network, and keeping the connection between the push channel and the network.
Optionally, the instructions of the operations further include:
Receiving a push message through the push channel;
confirming whether an application program corresponding to the push message is connected with a network or not;
and when the application program corresponding to the push message is not connected with the network, restoring the connection between the application program corresponding to the push message and the network.
Optionally, the instructions of the operations further include:
And monitoring the reading operation of the push message, and executing the confirmation of whether the application program corresponding to the push message is connected with a network or not when the reading operation of the push message is monitored.
Optionally, the instructions of the operations further include:
And confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and executing restoration of the connection between the application program corresponding to the push message and the network when the application program corresponding to the push message is allowed to access the network connected with the terminal.
Optionally, the monitoring whether the networked application is in an unused state includes:
monitoring whether the networked application program is in an unopened state;
Determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
Optionally, the instructions of the operations further include:
monitoring whether a recovery networking condition is met;
when the networking recovery condition is met, confirming the application programs which are not networked;
and restoring the connection of the non-networked application program and the network.
In a third aspect, embodiments of the present invention provide a non-transitory computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform a method of information retrieval, the method comprising:
monitoring whether the networked application is in an unused state;
and when the networked application program is in the unused state, closing the connection between the networked application program and the network, and keeping the connection between the push channel and the network.
Optionally, the method further comprises:
Receiving a push message through the push channel;
confirming whether an application program corresponding to the push message is connected with a network or not;
and when the application program corresponding to the push message is not connected with the network, restoring the connection between the application program corresponding to the push message and the network.
Optionally, the method further comprises:
And monitoring the reading operation of the push message, and executing the confirmation of whether the application program corresponding to the push message is connected with a network or not when the reading operation of the push message is monitored.
Optionally, the method further comprises:
And confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and executing restoration of the connection between the application program corresponding to the push message and the network when the application program corresponding to the push message is allowed to access the network connected with the terminal.
Optionally, the monitoring whether the networked application is in an unused state includes:
monitoring whether the networked application program is in an unopened state;
Determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
Optionally, the method further comprises:
monitoring whether a recovery networking condition is met;
when the networking recovery condition is met, confirming the application programs which are not networked;
and restoring the connection of the non-networked application program and the network.
According to the technical scheme, the embodiment of the invention has the following beneficial effects:
When the terminal is in a networking state, an application program in the terminal is also in a networking state, even if the networking application program is in an unused state, the connection between the networking application program and the network consumes the electric quantity of the terminal, in order to reduce the electric quantity consumption of the terminal, the state of the networking application program is monitored, and if the networking application program is not used, the networking application program does not need to be connected with the network, so the connection between the networking application program and the network is closed, and the connection between a push channel and the network is kept. At this time, the application program is converted from networking to non-networking, the terminal does not need to provide the electric energy required by networking for the application program, the consumption of the electric energy of the application program to the terminal is automatically reduced, and the push channel can also receive the push message in real time through the network because the connection between the networking application program and the network is only disconnected, and the real-time performance of receiving the push message of the application program is ensured.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a display interface for a terminal in a power saving mode in the prior art;
FIG. 2 is a flowchart illustrating an example of a method for setting an application according to an embodiment of the present invention;
FIG. 3 is a flowchart of another example of an application program setting method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of virtual key display in a closed node mode according to an embodiment of the present invention;
FIG. 5 is a flowchart of another example of an application program setting method according to an embodiment of the present invention;
FIG. 6 is a flowchart of another example of an application program setting method according to an embodiment of the present invention;
FIG. 7 is a flowchart of another example of an application setting method according to an embodiment of the present invention;
Fig. 8 is a schematic structural diagram of an application program setting device according to an embodiment of the present invention;
Fig. 9 is a schematic diagram of a setup hardware structure of an application according to an embodiment of the present invention.
Detailed Description
In order to provide an implementation scheme for saving the electric quantity of a terminal and receiving push messages in real time, the embodiment of the invention provides an application program setting method and device, and the embodiment of the invention is explained below with reference to the attached drawings, and it should be understood that the embodiment described herein is only used for explaining and explaining the invention, and is not used for limiting the invention. And embodiments of the invention and features of the embodiments may be combined with each other without conflict.
The technical staff find that, currently, in order to save the electric quantity of the terminal, when the electric quantity of the terminal is lower than a preset first threshold value, the terminal prompts the user whether to start the power saving mode on the display screen, as shown in fig. 1. After the user selects the power saving mode, the terminal can adopt the APP which is closed and operated in the background, so that the brightness of a display screen is reduced, and the power consumption of the terminal is reduced. In the above power saving mode, the user is required to perform the operation of triggering the "power saving mode on", and if the power of the terminal is not lower than the preset first threshold, or the user does not start the power saving mode for various reasons, the terminal is still operated in the non-power saving mode. When the mode of saving the terminal electric quantity is adopted, the user is required to execute triggering operation to start the power saving mode, and the operation is complex. Particularly, in a scenario where the user does not use the terminal for a long time, the terminal is continuously in a high power consumption state. For example: the user can keep working, sleeping or playing, the terminal is not used for a long time, and the user does not start the power saving mode of the terminal, and in the terminal, the electric quantity of the terminal can be greatly consumed due to the connection of the application software running in the background and the network.
In order to solve the above problems, an embodiment of the present invention provides a method and an apparatus for setting an application, where if a terminal has a networked application connected to a network and detects that the networked application is in an unused state, the connection between the networked application and the network is closed, and at this time, the networked application is converted into an unconnected application, and the connection between a push channel and the network is maintained. After the application program is disconnected with the network, the terminal does not need to provide the network-connected electric quantity for the application program, so that the consumption of the electric quantity of the terminal can be reduced, the automatic monitoring and the real-time response are realized, the user does not need to execute any triggering operation, and even if the user does not use the terminal for a long time, the consumption of the electric quantity of the terminal by the application program can be automatically optimized, and the electric quantity of the terminal can be timely and effectively saved. And because only the connection between the networked application program and the network is disconnected, the connection between the push channel and the network is still maintained, and the push channel can also receive push messages in real time through the network, so that the instantaneity of receiving the push messages of the application program is ensured.
It should be noted that, the technical solution provided by the embodiment of the present invention may be applied to a terminal connected to a network, for example: the mobile phone, tablet computer, smart watch, etc., are not particularly limited herein. The following describes the technical scheme provided by the embodiment of the invention in detail with reference to the attached drawings.
Exemplary method
Fig. 2 is a flowchart of a method for setting an application program according to an embodiment of the present invention, including:
201: a monitoring is made as to whether the networked application is in an unused state.
202: And when the networked application program is in an unused state, closing the connection between the networked application program and the network, and maintaining the connection between the push channel and the network.
Typically, a terminal is connected to a network, and a plurality of applications are connected to the network in the terminal. For example: an application program in the terminal is automatically connected with a network connected with the terminal after the terminal is connected with the network; for another example, an application in the terminal is not closed after use by the user, is connected to a network during background operation, and the like. The application connected to the network is a networked application and, in general, the application in the embodiment of the present invention has a message push function.
If the networked application is in use, the application needs to send and receive information via the network, and at this time, the networked application must be connected to the network for normal use. For example: and the user listens to music online by using the internet easy cloud music, and the internet easy cloud music needs to receive music data through the network, so that the internet easy cloud music is an application program which is connected with the internet. When the internet easy cloud music plays music, one scene is that the internet easy cloud music is displayed on a display screen of the terminal; in another scenario, the internet easy cloud music is not displayed on the display screen of the terminal, and when the user plays the music by using the internet easy cloud music, other application programs are also used. It can be appreciated that whatever the above scenario, the internet cloud music is in use. For another example: and the user uses the dog searching map to navigate, the dog searching map needs to update the geographic position information in real time through a network, and then the dog searching map is a networked application program. Similar to the internet music, the dog searching map is in a use state no matter whether the dog searching map is displayed on a display screen of a terminal or not during navigation. For another example, when the user uses the treasured to make a purchase and browses some merchandise, the user starts to chat with friends using the WeChat, and both the treasured and the WeChat are connected to the network. At this time, when the user is chatting by using the WeChat, the WeChat is in a use state; and the user does not browse the commodities in the panning, and the panning is converted into background operation, namely, is in an unused state. Also for example: when the user uses the terminal, the beauty take-out is not opened, and the beauty take-out is in an unopened state, namely in an unused state, although the beauty take-out is connected with a network.
As is apparent from the above examples, the application is in a state of being used, indicating that the user is using functions provided by the application, such as a music playing function, a navigation function, etc., irrespective of whether the application is displayed on the display screen of the terminal. The application is in an unused state, indicating that the user is not using the functionality provided by the application.
In order to save the power of the terminal, first, it is necessary to monitor whether the networked application is in an unused state. Although the networked application is in an unused state, the connection of the networked application to the network also consumes power from the terminal. Also, since the user does not use any of the functions of the networked application, the networked application does not have to connect to the network.
In one example, monitoring whether the networked application is in an unused state includes:
monitoring whether the networked application program is in an unopened state;
determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
Typically, an application may be connected to a network even if the application is not open. In the above monitoring manner, whether the networked application program is in an unopened state is monitored first, and if the networked application program is in an unopened state, it indicates that the user does not open the application program in the terminal, that is, the user does not necessarily use the networked application program, it indicates that the networked application program is necessarily in an unused state. Beauty take-out as described in the above examples, etc.
If the networked application program is monitored to be in an open state, whether the networked application program is in an unused state or not is monitored, namely whether a function in use exists in the networked application program is monitored. If the networked application is in use, that is, the networked application must have the function in use, such as the function of playing music of internet music, the navigation function of a dog search map, etc. in the above example.
If the networked application is in an unused state, i.e., the networked application is open, but the user does not use any of the functionality of the networked application, the networked application runs in the background, at which point the networked application does not have to connect to the network. In particular, applications may be categorized into a first class, which is in an on state and when running in the background, i.e. indicating that the application is in an unused state, for example: weChat, taobao, beauty take-out, paobao, etc.; a second type of application program, which is in an on state, indicates that the application program is in an unused state only when a function specified in the application program is not used, even when running in the background, for example: when the Internet easy cloud music runs in the background, the Internet easy cloud music can be indicated to be in an unused state only when the music playing function is not used; when the dog searching map runs in the background, the user can wipe the dog searching map to indicate that the dog searching map is in an unused state when the navigation function is not used, and the like. It can be understood that in the second type of application program, the application programs are different, the designated corresponding functions are different, and the functions are preset according to actual conditions.
Of course, it is also possible to directly monitor whether the networked application is in an unused state, i.e. whether there is an in-use function in the networked application. In the specific implementation, an appropriate implementation manner may be adopted according to actual needs, and specific limitation is not specified here.
It will be appreciated that although the networked application is in an unused state, the application may also be updated with data over the network, for example: the dog searching navigation is not started, but the dog searching navigation updates the position information; and when the WeChat runs in the background, the update information of the WeChat is also received. The networked application also consumes power of the terminal when data update is performed, but when the networked application is in an unused state, data update is not necessary, resulting in meaningless power consumption.
It will also be appreciated that the connection of the application to the network is closed, but the connection of the terminal to the network is not closed, and the connection of the push channel to the network is maintained. Therefore, the push channel can receive the push message of the application program in real time through the network, and even if the application program is not connected with the network, the push message of the application program is not affected, the real-time of the application program push message receiving is ensured, and the situation that a user cannot read the push message of the application program in time is avoided.
Thus, when a networked application is in an unused state, the networked application does not have the necessity of connecting to the network, the connection of the networked application to the network is closed, and the connection of the push channel to the network is maintained. In particular, there may be only one or more of the monitored networked applications, which is not particularly limited herein. After the connection between the unused networked application program and the network is closed, the networked application program is converted into the non-networked application program, the application program cannot update data through the network, a terminal is not required to continue to supply electric quantity required by the connection between the application program and the network to the application program naturally, the consumption of the electric quantity of the terminal is automatically reduced, and the connection between the push channel and the network is still connected, so that no delay of push information of the received application program is ensured, and the real-time performance is good.
The following describes in detail the application scenario commonly used in the above technical solution.
Application scene, scene where user does not use terminal for a period of time:
The user may make a reservation in advance in the case of working, sleeping, or playing, there is a case where the terminal is not used for a certain period of time, for example, 10 minutes, or 30 minutes without using the terminal, and the present invention is not limited herein. At this time, there is a networked application in the terminal, which may include a networked application in an unopened state, and may include a networked application in an opened state, but running in the background. The networked applications in an unused state consume power of the terminal due to the connection to the network. At this time, the networked application program in the unused state is monitored, and the connection between the networked application program and the network is closed, so that the electric quantity of the terminal is saved.
For example: the user does not use the terminal for a long time, monitors that the networked application program comprises a WeChat running in the background and a dog searching map in an unopened state, closes the connection of the WeChat and the network, and closes the connection of the dog searching map and the network.
In another scenario, when the user uses the terminal, there is no scenario where one or some of the networked applications are not used for a long time:
While the user continues to use the terminal, there are other networked applications in the terminal that are in an unused state, possibly including networked applications in an unopened state, and possibly including networked applications in an open state, but running in the background. While the user is using the terminal, other networked applications in an unused state consume the terminal's power due to the connection to the network. At this time, other networked application programs in an unused state are closed, and only the connection between the networked application program in the in-use state and the network is reserved, so that the electric quantity of the terminal is saved.
For example: the user is watching the video by using the fox searching video, and monitors that the networked application program comprises a WeChat running in the background and a dog searching map in an unopened state, and closes the connection of the WeChat and the network, and closes the connection of the dog searching map and the network, so as to keep the connection of the fox searching video and the network.
In the technical scheme provided by the embodiment of the invention, when the connection between the networked application program and the network is closed, each networked application program is mutually independent, namely, the connection between one networked application program and the network is closed, and the connection between other networked application programs and the network is not influenced. Thus, it is possible to close only the connection of the networked application in the unused state to the network without affecting the connection of the networked application in the in-use state to the network. And whether the terminal is used or not, the networked application program in an unused state can be monitored, the connection between the monitored networked application program in the unused state and the network is automatically closed, the automatic optimization of the electric quantity of the terminal is realized, the participation of a user is not needed, the operation is simplified, the intelligent electricity saving is realized, the push message of the application program can be received in real time, and the situation that the user cannot read the push message of the application program in time is avoided.
The foregoing describes in detail a scheme for closing the connection between the networked application in the unused state and the network, after closing the connection between the networked application in the unused state and the network, the networked application is converted into the non-networked application, and how to restore the connection between the non-networked application and the network is described in detail below, as shown in fig. 3, the method of the embodiment of the present invention further includes:
301: monitoring whether recovery networking conditions are met.
302: When the recovery networking condition is satisfied, the non-networked application is confirmed.
303: Restoring the connection of the non-networked application to the network.
The condition for recovering the networking is a condition which is set by a technician or a user in a self-defining way and can trigger the recovery of the connection of the non-networking application program and the network. When the condition of recovering the networking is monitored, confirming all the non-networking application programs, wherein the non-networking application programs are disconnected from the network, and recovering the connection of all the non-networking application programs and the network. At this time, the non-networked application is converted into a networked application, and data can be received and transmitted through the network.
In one example, the recovery networking condition may be that the power of the terminal is greater than a preset second threshold, and when the power of the terminal is greater than the preset second threshold, the power in the terminal is sufficient, and sufficient power may be provided for connection of the application program to the network. At this point, the connection of the non-networked application to the network is restored. The preset second threshold may be specifically set according to actual needs, which is not specifically limited herein. The method and the device have the advantages that the implementation scheme is provided, all the non-networked application programs can be automatically restored to be connected with the network, the operation is simple, and the instant response is realized.
In another example, the recovery networking condition may be a system trigger operation performed by the terminal when the terminal monitors that the user is using the terminal. If the user is not using the terminal for a long time while working, sleeping or playing, the connection of the unused networked application to the network may be closed, and at this time, the unused networked application is converted into an unused networked application. When the user reuses the terminal, a system triggering operation is performed, which includes turning on the terminal, lighting a display screen, or adjusting a volume, etc. When the terminal monitors the triggering operation of the system, the user is characterized to start to use the terminal, at the moment, the non-networked application programs are monitored, connection of all the non-networked application programs and the network is restored, the non-networked application programs are converted into the networked application programs again, and data can be received and sent through the network. The implementation scheme is provided, and all the non-networked application programs are restored to be connected with the network through the system triggering operation executed by the existing keys on the terminal, so that the user can use the terminal to be networked and synchronized with the application programs.
In yet another example, the resume networking condition may be a trigger operation of a virtual key that turns off the power saving mode. A virtual key for closing the power saving mode is preset, as shown in fig. 4, after a user triggers the virtual key for closing the power saving mode, an unconnected application program is monitored, connection between all the unconnected application programs and a network is restored, the unconnected application program is converted into the networked application program again, and data can be received and sent through the network. The implementation scheme is provided, and by triggering operation on a virtual key which is preset in the terminal and closes the power saving mode, all the non-networked application programs are restored to be connected with the network, so that whether the user selects the application programs to be networked or not according to actual needs is realized.
Of course, the recovery of the networking condition is not limited to the implementation described in the above examples, and other implementations may be adopted, and the recovery may be specifically set according to actual needs. As long as the restore networking condition is satisfied, all non-networked applications are restored to the network connection.
In the above examples, the implementation manner of recovering all the non-networked application programs from being connected to the network at one time is specifically described, and in the examples described below, it is possible to achieve that only part of the non-networked application programs are recovered from being connected to the network.
As shown in fig. 5, the method further includes:
501: and receiving the push message through the push channel.
502: And confirming whether the application program corresponding to the push message is connected with the network.
503: And when the application program corresponding to the push message is not connected with the network, restoring the connection between the application program corresponding to the push message and the network.
A push (push) channel is a channel that receives push messages, which are messages pushed to a terminal by a server of application software, one push message corresponding to one application. For example: push message "you have a new WeChat message" pushed to the terminal by WeChat server; push message "Beijing east special selling" pushed to terminal by Beijing east server, massive coupons are robbed immediately "; push message "you have a consumption of 138 yuan, please see" pushed to the terminal by the payment treasury server, etc.
Although a push message corresponds to an application, all applications in the terminal share a push channel for receiving push messages, i.e. the push messages of each application are received from the same push channel. And even if the connection of the application program and the network is closed, the push channel can be connected with the network as long as the terminal is normally connected with the network. I.e. whether the application is connected to the network or not, without any impact on the connection of the push channel to the network.
The technical staff find that in the prior art, a mode of disconnecting the terminal from the network is adopted to disconnect the application program from the network. The terminal is disconnected with the network, so that not only is the application program disconnected with the network, but also the push channel is disconnected with the network, and the push message cannot be received from the push channel. In order to read the push message, the connection between the terminal and the network is restored every preset time period, so that the connection between the push channel and the network is restored, and the push message is received. The connection mode of disconnecting the application program from the network has delay in receiving the push message and poor instantaneity.
In the technical scheme provided by the embodiment of the invention, only the connection between the unused networked application program and the network is closed, and the connection between the terminal and the network is not closed, at this time, the connection between the push channel and the network is not affected, and the push channel can also receive push messages through the network. That is, the push message can be received in real time, no delay exists, and the real-time performance is good.
After receiving the push message from the push channel, confirming whether the application program corresponding to the push message is connected with the network, and if the application program is an application program which is not networked, namely the application program is not connected with the network, recovering the connection of the application program and the network. In the above scheme, only the connection between the non-networked application program corresponding to the received push message and the network is restored, and not all the non-networked application programs are restored to the network, so that the connection between the non-networked application program and the network can be restored in a targeted manner.
It can be understood that in the above scheme, after receiving the push message, it indicates that the user is likely to need to use the application program corresponding to the push message, and at this time, if the application program is not connected to the network, the user cannot normally use the application program, and then the connection between the application program corresponding to the push message and the network is restored, so as to ensure that the user normally uses the application program corresponding to the push message.
Illustrating: if a push message pushed by the micro-letter server is received, namely a new micro-letter message is received, and at the moment, if the micro-letter is not connected with the network, the connection of the micro-letter and the network is restored, and the micro-letter receives the micro-letter message through the network so that a user can open the micro-letter for viewing.
In the above technical solution, for other non-networked applications, if the push message of the non-networked application is not received, it is not necessary to restore the connection between the other non-networked applications and the network, and only the connection between the non-networked applications corresponding to the push message and the network is restored, that is, only the power for connecting the network is provided for the application to be used, and the power of the terminal can be better saved than the power for once restoring the connection between all non-networked applications and the network.
In the above example, after receiving the push message, the connection between the non-networked application program corresponding to the push message and the network is restored. In another example provided below, after receiving the push message, further monitoring a read operation of the push message, and when the read operation of the push message is monitored, recovering connection between the non-networked application program corresponding to the push message and the network. As shown in fig. 6.
601: When a push message is received from a push channel, a read operation of the push message is monitored.
602: When the reading operation of the push message is monitored, whether the application program corresponding to the push message is connected with the network is confirmed.
603: And when the application program corresponding to the push message is not connected with the network, restoring the connection between the application program corresponding to the push message and the network.
When a push message is received from a push channel, if a user does not read the push message, that is, does not monitor a read operation of the push message, the user does not use an application program corresponding to the push message, at this time, connection between an application program corresponding to the push message and a network which is not networked can be not restored, and the terminal does not need to provide electric quantity for the application program corresponding to the push message which is not networked to connect with the network.
After the push message is received from the push channel, if the user reads the push message, the user can monitor the read operation of the push message, and at this time, the user needs to use the application program corresponding to the push message, and if the application program corresponding to the push message is not connected with the network, the connection between the application program corresponding to the push message and the network is restored.
Illustrating: if a push message pushed by the micro-letter server is received, namely, a new micro-letter message is received, and if the micro-letter is not connected with the network, the user does not notice that the push message is received, does not read the push message and does not use the micro-letter because the user works or sleeps, and the like. At this time, the connection of the WeChat and the network does not need to be restored. When the user reads the push message, namely, the read operation of the push message is monitored, the connection of the WeChat and the network is restored.
It can be understood that many push messages received are not read by the user, after the push messages are received, the connection between the non-networked application program corresponding to the push messages and the network is not restored immediately, but the read operation of the push messages is further monitored, and if the read operation of the push messages is not monitored, the connection between the non-networked application program corresponding to the push messages and the network is not restored. By adopting the method, on one hand, during the period that the user does not read the push message, the non-networking application program corresponding to the push message does not need to be networked, and the terminal does not need to provide the electric quantity required by the networking of the non-networking application program; on the other hand, the user is not interested in the push message, the push message is not read, the connection between the non-networked application program corresponding to the push message and the network is not required to be restored, and the terminal is not required to supply the electric quantity required by networking the non-networked application program. Further, the electric quantity of the terminal is saved.
It will be appreciated that in addition to the examples described above, usage operations for an application may also be monitored; when the use operation of the application program is monitored, whether the application program is connected with the network is monitored, and when the application program is not connected with the network, the connection of the application program with the network is restored. I.e. when a user uses an unconnected application, the connection of the unconnected application to the network is restored in real-time response.
In the above example, when the read operation of the push message is monitored, the connection between the non-networked application program corresponding to the push message and the network is restored. In order to adapt to the setting of the user, in the following example, further, it is further required to monitor whether to allow the application corresponding to the push message to access the network to which the terminal is connected, as shown in fig. 7.
701: When a push message is received from a push channel, a read operation of the push message is monitored.
702: When the reading operation of the push message is monitored, whether the application program corresponding to the push message is connected with the network is confirmed.
703: And when the application program corresponding to the push message is not connected with the network, confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal.
704: And when the application program corresponding to the push message is allowed to access the network connected with the terminal, restoring the connection between the application program corresponding to the push message and the network.
When a push message is received from a push channel, if a read operation of the push message is monitored, whether an application program corresponding to the push message is connected with a network is confirmed. When the application program corresponding to the push message is not connected with the network, further monitoring whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and if the application program corresponding to the push message is allowed to access the network connected with the terminal, recovering the connection between the application program corresponding to the push message and the network; if the application program corresponding to the push message is not allowed to access the network connected with the terminal, the connection between the application program corresponding to the push message and the network is not restored.
In particular, when the method is implemented, whether the application program corresponding to the push message is allowed to access the network connected with the terminal can be confirmed according to the setting of the application program corresponding to the push message in the terminal by a user. In general, all applications are allowed to access the wifi network. If the application program corresponding to the push message is allowed to access the cellular mobile network in the setting information in the terminal, the application program corresponding to the push message is allowed to access the 4G or 3G network, and at this time, whether the network connected with the terminal is wifi,4G or 3G, the application program corresponding to the push message is allowed to access the network connected with the terminal. If the application program corresponding to the push message is not allowed to access the cellular mobile network in the setting information in the terminal, the application program corresponding to the push message is not allowed to access the 4G or 3G network, and only the wifi network is allowed to be accessed. When the network accessed by the terminal is a 4G or 3G network, the connection between the application program corresponding to the push message and the network is not restored, namely the application program corresponding to the push message is not allowed to be accessed to the network connected by the terminal; and when the network accessed by the terminal is wifi, allowing the connection between the application program corresponding to the push message and the network to be restored, namely allowing the application program corresponding to the push message to be accessed to the network connected by the terminal.
Illustrating: receiving a push message of the excellent cool video, if the read operation of the push message is monitored, and the excellent cool video is not connected with a network, if the terminal is connected with a 4G network, confirming whether the excellent cool video is allowed to access the 4G network, and if the user sets the excellent cool video in the terminal to save the flow, the user cannot use the cellular mobile data, namely the excellent cool video is not allowed to access the 4G network, and the connection between the excellent cool video and the network is not restored; if the user sets the excellent video in the terminal to use the cellular mobile data, namely, the excellent video is allowed to access the 4G network, the connection between the excellent video and the network is restored.
In the above example, according to the setting of the user on the terminal, only when the application program corresponding to the push message is allowed to access the network connected with the terminal, the operation of recovering the connection between the application program corresponding to the push message and the network is executed, so that the actual requirement of the user is met, and the user experience is improved.
It should be noted that, in the above description, "monitoring the read operation of the push message" may not be performed, "when the push message is received from the push channel," determining whether the application corresponding to the push message is connected to the network "is directly performed. The specific implementation is similar to the above, and will not be repeated here.
Exemplary apparatus
Fig. 8 is a schematic structural diagram of an application program setting device according to an embodiment of the present invention, including:
A state monitoring module 801, configured to monitor whether a networked application is in an unused state.
A closing module 802, configured to close the connection between the networked application and the network when the networked application is in the unused state, and maintain the connection between the push channel and the network
Optionally, the apparatus further includes:
The receiving module is used for receiving the push message through the push channel;
the first confirming module is used for confirming whether the application program corresponding to the push message is connected with a network or not;
And the first recovery module is used for recovering the connection between the application program corresponding to the push message and the network when the application program corresponding to the push message is not connected with the network.
Optionally, the apparatus further includes:
the operation monitoring module is used for monitoring the reading operation of the push message, and triggering the first confirmation module when the reading operation of the push message is monitored.
Optionally, the apparatus further includes:
And the second confirming module is used for confirming whether the network connected with the application program access terminal corresponding to the push message is allowed or not, and triggering the first recovering module when the network connected with the application program access terminal corresponding to the push message is allowed.
Optionally, the state monitoring module includes:
The first monitoring unit is used for monitoring whether the networked application program is in an unopened state;
A determining unit configured to determine that the networked application is in the unused state when the networked application is in an unopened state;
and the second monitoring unit is used for monitoring whether the networked application program is in an unused state when the networked application program is in an opened state.
Optionally, the apparatus further includes:
the networking monitoring module is used for monitoring whether the recovery networking condition is met;
a third confirmation module, configured to confirm an application program that is not networked when the recovery networking condition is satisfied;
And the second recovery module is used for recovering the connection of the non-networked application program and the network.
The apparatus shown in fig. 8 corresponds to the method shown in fig. 2, and the specific implementation is similar to the method shown in fig. 2, and is not described herein again with reference to the description in the method shown in fig. 2.
By the implementation manner provided in this embodiment, the state of the networked application program is monitored, and if the networked application program is not used, the networked application program does not need to be connected to the network, so that the connection between the networked application program and the network is closed, and the connection between the push channel and the network is maintained. At this time, the application program is converted from networking to non-networking, the terminal does not need to provide the electric energy required by networking for the application program, the consumption of the electric energy of the application program to the terminal is automatically reduced, and the push channel can also receive the push message in real time through the network because the connection between the networking application program and the network is only disconnected, and the real-time performance of receiving the push message of the application program is ensured.
Referring to fig. 9, apparatus 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
The processing component 902 generally controls overall operations of the apparatus 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 902 can include one or more modules that facilitate interaction between the processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operations at the device 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phonebook data, messages, pictures, videos, and the like. The memory 904 may be implemented by any type of volatile or nonvolatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 906 provides power to the various components of the device 900. Power supply components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 900.
The multimedia component 908 comprises a screen between the device 900 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also confirm the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
The I/O interface 912 provides an interface between the processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may confirm the on/off status of the device 900, the relative positioning of the assemblies, such as the display and keypad of the apparatus 900, the sensor assembly 914 may also confirm the change in position of the apparatus 900 or one of the assemblies of the apparatus 900, the presence or absence of user contact with the apparatus 900, the orientation or acceleration/deceleration of the apparatus 900, and the temperature change of the apparatus 900. The sensor assembly 914 may include a proximity sensor configured to confirm the presence of nearby objects in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communication between the apparatus 900 and other devices in a wired or wireless manner. The device 900 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication part 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
Specifically, an embodiment of the present invention provides an electronic device, which may be embodied as an apparatus 900, including a memory 904, and one or more programs, where the one or more programs are stored in the memory 904 and configured to be executed by the one or more processors 920, the one or more programs include instructions for:
monitoring whether the networked application is in an unused state;
and when the networked application program is in the unused state, closing the connection between the networked application program and the network, and keeping the connection between the push channel and the network.
Optionally, the instructions of the operations further include:
Receiving a push message through the push channel;
confirming whether an application program corresponding to the push message is connected with a network or not;
and when the application program corresponding to the push message is not connected with the network, restoring the connection between the application program corresponding to the push message and the network.
Optionally, the instructions of the operations further include:
And monitoring the reading operation of the push message, and executing the confirmation of whether the application program corresponding to the push message is connected with a network or not when the reading operation of the push message is monitored.
Optionally, the instructions of the operations further include:
And confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and executing restoration of the connection between the application program corresponding to the push message and the network when the application program corresponding to the push message is allowed to access the network connected with the terminal.
Optionally, the monitoring whether the networked application is in an unused state includes:
monitoring whether the networked application program is in an unopened state;
Determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
Optionally, the instructions of the operations further include:
monitoring whether a recovery networking condition is met;
when the networking recovery condition is met, confirming the application programs which are not networked;
and restoring the connection of the non-networked application program and the network.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium, such as memory 904, comprising instructions executable by processor 920 of apparatus 900 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform a method of setting an application, the method comprising:
monitoring whether the networked application is in an unused state;
and when the networked application program is in the unused state, closing the connection between the networked application program and the network, and keeping the connection between the push channel and the network.
Optionally, the method further comprises:
Receiving a push message through the push channel;
confirming whether an application program corresponding to the push message is connected with a network or not;
and when the application program corresponding to the push message is not connected with the network, restoring the connection between the application program corresponding to the push message and the network.
Optionally, the method further comprises:
And monitoring the reading operation of the push message, and executing the confirmation of whether the application program corresponding to the push message is connected with a network or not when the reading operation of the push message is monitored.
Optionally, the method further comprises:
And confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and executing restoration of the connection between the application program corresponding to the push message and the network when the application program corresponding to the push message is allowed to access the network connected with the terminal.
Optionally, the monitoring whether the networked application is in an unused state includes:
monitoring whether the networked application program is in an unopened state;
Determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
Optionally, the method further comprises:
monitoring whether a recovery networking condition is met;
when the networking recovery condition is met, confirming the application programs which are not networked;
and restoring the connection of the non-networked application program and the network.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that, for a person skilled in the art, modifications and adaptations can be made without departing from the principle of the embodiment of the present invention, and these modifications and adaptations should and are intended to be comprehended within the scope of the embodiment of the present invention.

Claims (12)

1. A method for setting an application program, the method comprising:
Monitoring whether the networked application is in an unused state; wherein, when there is no function in use in the networked application, characterizing that the networked application is in the unused state; the networked application programs comprise foreground and background application programs;
When the networked application program is in the unused state, closing the connection between the networked application program and a network, and keeping the connection between a pushing channel of the application program in the disconnected state and the network;
receiving push information through the push channel, and monitoring a read operation of the push information of the push channel;
When the reading operation of the push message is monitored, confirming whether an application program corresponding to the push message is connected with a network or not;
and when the application program corresponding to the push message is not connected with the network, confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and when the application program corresponding to the push message is allowed to access the network connected with the terminal, restoring the connection between the application program corresponding to the push message and the network.
2. The method of claim 1, wherein monitoring whether the networked application is in an unused state comprises:
monitoring whether the networked application program is in an unopened state;
Determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
3. The method according to claim 1, wherein the method further comprises:
monitoring whether a recovery networking condition is met;
when the networking recovery condition is met, confirming the application programs which are not networked;
and restoring the connection of the non-networked application program and the network.
4. An apparatus for setting an application program, the apparatus comprising:
The state monitoring module is used for monitoring whether the networked application program is in an unused state; wherein, when there is no function in use in the networked application, characterizing that the networked application is in the unused state; the networked application programs comprise foreground and background application programs;
The closing module is used for closing the connection between the networked application program and the network when the networked application program is in the unused state, and keeping the connection between the pushing channel of the application program in the disconnected state and the network;
The receiving module is used for receiving the push message through the push channel;
The operation monitoring module is used for monitoring the reading operation of the push message, and triggering the first confirmation module when the reading operation of the push message is monitored;
the first confirming module is used for confirming whether the application program corresponding to the push message is connected with a network or not;
The second confirmation module is used for confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal when the application program corresponding to the push message is not connected with the network, and triggering the first recovery module when the application program corresponding to the push message is allowed to access the network connected with the terminal;
And the first recovery module is used for recovering the connection between the application program corresponding to the push message and the network.
5. The apparatus of claim 4, wherein the status monitoring module comprises:
The first monitoring unit is used for monitoring whether the networked application program is in an unopened state;
A determining unit configured to determine that the networked application is in the unused state when the networked application is in an unopened state;
and the second monitoring unit is used for monitoring whether the networked application program is in an unused state when the networked application program is in an opened state.
6. The apparatus of claim 4, wherein the apparatus further comprises:
the networking monitoring module is used for monitoring whether the recovery networking condition is met;
a third confirmation module, configured to confirm an application program that is not networked when the recovery networking condition is satisfied;
And the second recovery module is used for recovering the connection of the non-networked application program and the network.
7. An electronic device comprising a memory, and at least one program, wherein the at least one program is stored in the memory and configured to be executed by at least one processor, the at least one program comprising instructions for:
Monitoring whether the networked application is in an unused state; wherein, when there is no function in use in the networked application, characterizing that the networked application is in the unused state; the networked application programs comprise foreground and background application programs;
When the networked application program is in the unused state, closing the connection between the networked application program and a network, and keeping the connection between a pushing channel of the application program in the disconnected state and the network;
receiving push information through the push channel, and monitoring a read operation of the push information of the push channel;
When the reading operation of the push message is monitored, confirming whether an application program corresponding to the push message is connected with a network or not;
and when the application program corresponding to the push message is not connected with the network, confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and when the application program corresponding to the push message is allowed to access the network connected with the terminal, restoring the connection between the application program corresponding to the push message and the network.
8. The electronic device of claim 7, wherein the monitoring whether the networked application is in an unused state comprises:
monitoring whether the networked application program is in an unopened state;
Determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
9. The electronic device of claim 7, wherein the instructions to operate further comprise:
monitoring whether a recovery networking condition is met;
when the networking recovery condition is met, confirming the application programs which are not networked;
and restoring the connection of the non-networked application program and the network.
10. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a method of setting an application, the method comprising:
Monitoring whether the networked application is in an unused state; wherein, when there is no function in use in the networked application, characterizing that the networked application is in the unused state; the networked application programs comprise foreground and background application programs;
When the networked application program is in the unused state, closing the connection between the networked application program and a network, and keeping the connection between a pushing channel of the application program in the disconnected state and the network;
receiving push information through the push channel, and monitoring a read operation of the push information of the push channel;
When the reading operation of the push message is monitored, confirming whether an application program corresponding to the push message is connected with a network or not;
and when the application program corresponding to the push message is not connected with the network, confirming whether the application program corresponding to the push message is allowed to access the network connected with the terminal, and when the application program corresponding to the push message is allowed to access the network connected with the terminal, restoring the connection between the application program corresponding to the push message and the network.
11. The storage medium of claim 10, wherein the monitoring whether the networked application is in an unused state comprises:
monitoring whether the networked application program is in an unopened state;
Determining that the networked application is in the unused state when the networked application is in an unopened state;
When the networked application is in an open state, monitoring whether the networked application is in an unused state.
12. The storage medium of claim 10, wherein the method further comprises:
monitoring whether a recovery networking condition is met;
when the networking recovery condition is met, confirming the application programs which are not networked;
and restoring the connection of the non-networked application program and the network.
CN201710848147.XA 2017-09-19 2017-09-19 Application program setting method and device Active CN109526043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710848147.XA CN109526043B (en) 2017-09-19 2017-09-19 Application program setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710848147.XA CN109526043B (en) 2017-09-19 2017-09-19 Application program setting method and device

Publications (2)

Publication Number Publication Date
CN109526043A CN109526043A (en) 2019-03-26
CN109526043B true CN109526043B (en) 2024-07-19

Family

ID=65769454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710848147.XA Active CN109526043B (en) 2017-09-19 2017-09-19 Application program setting method and device

Country Status (1)

Country Link
CN (1) CN109526043B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116137698A (en) * 2021-11-18 2023-05-19 深圳市万普拉斯科技有限公司 Network data processing method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188653A (en) * 2011-12-27 2013-07-03 华为终端有限公司 Method of data receiving, method of data sending, mobile terminal and server

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8590012B2 (en) * 2007-08-27 2013-11-19 Microsoft Corporation Network access control based on program state
KR20110114844A (en) * 2010-04-14 2011-10-20 주식회사 엘지유플러스 Mobile terminal and method for controlling access to the internet
US8566625B2 (en) * 2011-07-01 2013-10-22 Intel Corporation System and method for determining transmitting frequency to maintain remote application server connectivity
WO2014030199A1 (en) * 2012-08-20 2014-02-27 富士通株式会社 Seamless application push system and method for same
US9256484B2 (en) * 2013-06-09 2016-02-09 Apple Inc. Dynamic adjustment of mobile device based on user activity
CN103491105B (en) * 2013-10-10 2017-04-12 成都达信通通讯设备有限公司 Multi-APN channel management method for multi-APN network concurrent networking
CN104703146B (en) * 2013-12-09 2019-03-08 腾讯科技(深圳)有限公司 Information-pushing method, client and system
US20150282244A1 (en) * 2014-03-26 2015-10-01 Htc Corporation Mobile device and method for managing network connection and storage medium
CN104065729B (en) * 2014-06-27 2017-12-05 广州猎豹网络科技有限公司 Information-pushing method and device
CN104298547B (en) * 2014-09-26 2017-09-01 小米科技有限责任公司 terminal setting method and device
CN104598238A (en) * 2015-01-19 2015-05-06 苏宁云商集团股份有限公司 Shielding method of application push message and intelligent terminal
US10591981B2 (en) * 2015-04-14 2020-03-17 Huawei Technologies Co., Ltd. Terminal control method and apparatus, and terminal
CN106155531A (en) * 2015-04-20 2016-11-23 ***通信集团终端有限公司 The method and device of application program is controlled during a kind of terminal screen locking
CN105607979B (en) * 2015-12-18 2018-05-08 小米科技有限责任公司 Networking control method and device
CN105791560B (en) * 2016-02-26 2019-06-04 广东欧珀移动通信有限公司 A kind of access data network-based control method and user terminal
CN105893129B (en) * 2016-03-30 2020-01-07 北京小米移动软件有限公司 Method and device for processing application program in terminal
CN105978788A (en) * 2016-04-27 2016-09-28 努比亚技术有限公司 Message pushing device and method thereof
CN105847285A (en) * 2016-05-16 2016-08-10 乐视控股(北京)有限公司 Push service configuration method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188653A (en) * 2011-12-27 2013-07-03 华为终端有限公司 Method of data receiving, method of data sending, mobile terminal and server

Also Published As

Publication number Publication date
CN109526043A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
US10031575B2 (en) Method and device for waking up MCU chip
KR101837333B1 (en) Method and apparatus for awakening electronic device
CN107608561B (en) Touch screen control method and device
CN108564947B (en) Method, apparatus and storage medium for far-field voice wake-up
CN107438811B (en) Information screen display method and device
CN105979088B (en) Message pushing method and device
US20220150594A1 (en) Method for message interaction, terminal and storage medium
CN104302048A (en) Lamp control method and device
CN105159675A (en) Electronic equipment, wakeup method and device of electronic equipment
CN106534562B (en) File deletion method and device
CN107526591B (en) Method and device for switching types of live broadcast rooms
CN109451341B (en) Video playing method, video playing device, electronic equipment and storage medium
CN106357721B (en) Timing method and device
CN112037787A (en) Wake-up control method, device and computer readable storage medium
CN105911573B (en) Flight equipment method for retrieving and device
CN104852842A (en) Information broadcasting method and information broadcasting device
CN106357910A (en) Terminal working mode switching method and device
CN105049763B (en) Trigger the method and device of projection
CN105786507A (en) Display interface switching method and device
CN111212306A (en) Wheat connecting method and device, electronic equipment and storage medium
CN113194025A (en) Message display method, message display device, electronic equipment, storage medium and program product
CN112672389B (en) Network switching method
CN114158018A (en) Data transmission method and device, Bluetooth slave device and Bluetooth master device
CN109526043B (en) Application program setting method and device
EP3188566B1 (en) Application management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant