If the android user has set WIFI SLEEP POLICY (KEEP WIFI ON DURING SLEEP) NEVER, this means that Wi-Fi should sleep when the phone is locked or asleep.
And the app has a Wifi lock when the phone is not sleeping. While the application remains locked, if the phones are asleep, which settings should prevail?
Sleep Policy? which says wifi should disable
or lock purchased by the app? who is trying to keep wifi ON
There is no clear explanation in the Android documentation, any tips will be useful, since I do not want to use redundant code in my application.
Ahmed source
share