Wapdating com - Updating android to 2 2
It does precompilation only when then the device is idle and charging, saving time and battery by doing that work in advance.
Turning the screen on or plugging in the device brings the device out of Doze.
When the device is stationary again, with screen off and on battery for a period of time, Doze applies the full CPU and network restrictions on alarms, and GPS/Wi-Fi scans.
Any time the screen is off for a period of time and the device is unplugged, Doze applies a subset of the familiar CPU and network restrictions to apps.
This means users can save battery even when carrying their devices in their pockets. Doze now applies restrictions to improve battery life even when the device is not stationary.
You can also disable multi-window display for your app, which ensures that the system will only show your app in full-screen mode.