Method and apparatus for data interaction
First Claim
1. A method for data interaction, comprising:
- obtaining, by a terminal, a first time interval associated with a first application running in a background of the terminal, wherein the first time interval is a time period of a first timer, wherein the first timer is associated with the first application and the first timer runs periodically based on the first time interval;
obtaining, by the terminal, a second time interval associated with a second application running in the background of the terminal, wherein the second time interval is a time period of a second timer, wherein the second timer is associated with the second application and the second timer runs periodically based on the second time interval;
after the first timer and the second timer are started, activating, by the terminal, a first packet data protocol (PDP) when the first timer expires, wherein the first timer expires before the second timer expires and the second timer expires before the next expiration of the first timer;
establishing by the terminal, based on the activated first PDP, a first data link between the first application and a network to perform data interaction for the first application;
establishing by the terminal, based on the activated first PDP, a second data link between the second application and the network to perform data interaction for the second application; and
restarting, by the terminal, the first timer and the second timer when the first application and the second application perform data interaction.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention discloses a method and an apparatus for data interaction, and the method includes: obtaining required times of data interaction between valid applications in a background application mode and a network; selecting a minimum required time from the current required times as a target required time of data interaction, and starting timing; when the target required time expires, obtaining each valid application whose current required time of data interaction is between two consecutive target required times, and determining the valid application as a target application; and activating a packet data protocol PDP, establishing a data link between the target application and the network, and performing data interaction, and then restarting timing.
-
Citations
20 Claims
-
1. A method for data interaction, comprising:
-
obtaining, by a terminal, a first time interval associated with a first application running in a background of the terminal, wherein the first time interval is a time period of a first timer, wherein the first timer is associated with the first application and the first timer runs periodically based on the first time interval; obtaining, by the terminal, a second time interval associated with a second application running in the background of the terminal, wherein the second time interval is a time period of a second timer, wherein the second timer is associated with the second application and the second timer runs periodically based on the second time interval; after the first timer and the second timer are started, activating, by the terminal, a first packet data protocol (PDP) when the first timer expires, wherein the first timer expires before the second timer expires and the second timer expires before the next expiration of the first timer; establishing by the terminal, based on the activated first PDP, a first data link between the first application and a network to perform data interaction for the first application; establishing by the terminal, based on the activated first PDP, a second data link between the second application and the network to perform data interaction for the second application; and restarting, by the terminal, the first timer and the second timer when the first application and the second application perform data interaction. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A terminal for data interaction, comprising:
-
a memory; a processor coupled to the memory, wherein the processor when executing is configured to; obtain a first time interval associated with a first application running in a background of the terminal, wherein the first time interval is a time period of a first timer, wherein the first timer is associated with the first application and the first timer runs periodically based on the first time interval; obtain a second time interval associated with a second application running in the background of the terminal, wherein the second time interval is a time period of a second timer, wherein the second timer is associated with the second application and the second timer runs periodically based on the second time interval; after the first timer and the second timer are started, activate a first packet data protocol (PDP) when the first timer expires, wherein the first timer expires before the second timer expires and the second timer expires before the next expiration of the first timer; establish, based on the activated first PDP, a first data link between the first application and a network to perform data interaction for the first application; establish, based on the activated first PDP, a second data link between the second application and the network to perform data interaction for the second application; and restart the first timer and the second timer when the first application and the second application perform data interaction. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A computer program product, comprising program codes stored in a non-transitory computer readable storage medium for use by a terminal for data interaction, the program codes comprising instructions for:
-
obtaining a first time interval associated with a first application running in a background of the terminal, wherein the first time interval is a time period of a first timer, wherein the first timer is associated with the first application and the first timer runs periodically based on the first time interval; obtaining a second time interval associated with a second application running in the background of the terminal, wherein the second time interval is a time period of a second timer, wherein the second timer is associated with the second application and the second timer runs periodically based on the second time interval; after the first timer and the second timer are started, activating a first packet data protocol (PDP) when the first timer expires, wherein the first timer expires before the second timer expires and the second timer expires before the next expiration of the first timer; establishing, based on the activated first PDP, a first data link between the first application and a network to perform data interaction for the first application; establishing, based on the activated first PDP, a second data link between the second application and the network to perform data interaction for the second application; and restarting the first timer and the second timer when the first application and the second application perform data interaction. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification