Doze mode and App Standby
问题 How can I know in my app if the phone is in Doze mode or if my app is in Standby mode? Can I also know it by using some subscribing approach? 回答1: There's a difference between App Standby (where your app goes to sleep because it's lonely) and Doze (where the system went to sleep because users have lives). Doze only works when your device remains stationary. If you pick it up or wake the screen, Doze mode is deactivated and the timer resets. It won’t ever turn on when the phone is sitting in