I m developing an app that use Mobile Data connection (always GPRS) to upload in a loop each 5 minutes 300 kb of data. Between two upload i see that the data connection remains up (gprs logo on status bar) even if there aren t data transferring....
In this time (between two upload) the battery is used by the Mobile Data connection? Do you think that i should use this method to disable and enable connection between uploads to save the batterylife or is not helpfull?
If is it so...how can i use that code in my Service Class such as a function, without create a new class? THanx from a noob!
EDIT
The app is for my personal use and the app have the entire control of phone (the phone is alone and it doesn t interact with the user). So i can sto all data connection...but i can t use that code as i want (as a function!) Help me!
EDIT 2
Anyway i m able to enable and disable "airplane mode", but the reconnection require minim 13-14 seconds. May be this help to save battery in the "dead time"?