Recent problems encountered in the development of the issue of the question is hereby recorded
First, the device settings never hibernate, setting the power saving mode to 15 seconds (i.e., 15 seconds after the device brightness is dimmed)
Then, into our development of the application, in our development of the application will be scheduled to perform an upload task, when the network is not connected, will prompt the user "network is not connected, please check the network"
If using Toast.maketext (networkerroractivity.this, "Network not connected, check network", Toast.length_short). Show (); That way.
Will wake up the screen, because it will be scheduled to perform tasks, so each prompt will wake up the screen to power consumption
So you can change the alertdialog way hint
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android device calling Toast when setting up power saving mode will wake up the screen suddenly lighten