I switched off the screen display of my Nexus 5 device running Android M 
and then issued the following commands.

im17-x0:~ r.j$ adb shell dumpsys battery unplug
im17-x0:~ r.j$ adb shell dumpsys deviceidle stepStepped to: IDLE_PENDING
im17-x0:~ r.a$ adb shell dumpsys deviceidle stepStepped to: SENSING
im17-x0:~ r.a$ adb shell dumpsys deviceidle stepStepped to: IDLE

Now ideally my device should go to idle mode. But i started a CountDownTimer 
before putting it in idle mode and its still running. Also the network access 
is still there in my phone( checked using this <http://pastebin.com/nBuh2UVV> 
function)

Why is the device not going in doze mode? Following the options from here 
<https://developer.android.com/preview/testing/guide.html#doze-standby> for 
standby mode also has the same effect. Why?

Also in that timer,if i check for isDeviceIdleMode(), it returns true.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to