[android-developers] Programmatically disable the sleep mode of mobile network connection
Hi:
During the large file upload, noticed that mobile network is going to sleep mode and it is disconnecting the internet connection. This is causing large file upload/download to failure.
Has anyone controlled mobile network connection through programmatically in app.
We have also identified that wi-fi also getting disconnected during sleep mode. But we have used the following system settings to never allow sleep mode.
android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.WIFI_SLEEP_POLICY, android.provider.Settings.System.WIFI_SLEEP_POLICY_NEVER);
Thanks
Veni
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home