Saturday, 15 February 2014

android - execute periodic network requests in batch -


In terms of periodic network requests, I would like to know about Android's behavior, according to the Android KitKat documentation, "Android device hardware So that sensors can be assembled and distributed separately in batch differently, but it is detected separately. This will keep the processor of the device in low-power nesting condition until the batch is distributed not Is In ". This functionality was introduced in Android 4.4. Defining the new look of alarm manager in the jacket, "To improve the efficiency of the power, Android now adds alarms from all apps simultaneously, which are at a very similar time, so that the system opens a device once more instead of alarms Ho."

The question is, there is no way to do this in case of a network call or similar API available.

I searched and found that there is no simple API available for batch network calls, but achieving the goal One way to do this is to use Google's recommendations about regular updates. According to the documentation "When scheduling updates, use those repeat repeat alarms which allow the exact moment to turn on each alarm to" make the phase "changes to the system.


No comments:

Post a Comment