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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to