android - Will a short time period for SyncAdapter's periodic sync, necessarily drain the battery? -
in case, "short time period" can 30 seconds 5 minutes. onperformsync
method nothing of times, i'm concerned short sync period might prevent phone sleeping, , have drastic effect on battery life.
public void onperformsync(account account, bundle extras, string authority, contentproviderclient provider, syncresult syncresult) { if (!internetconnectiondetector.isconnectedtointernet()) return; if (/*we have received push server indicating update available*/) syncwithserver(); else return; }
Comments
Post a Comment