Mobile/PowerManagement

From MozillaWiki
Jump to navigation Jump to search

Different OSes have different application lifecycles. Depending on application states, we might want to do certain things.

Application States

State Brief Description Android Maemo
Active In the foreground, running ? ?
Background Visible In the background - should still run ? ?
Background Invisible In the background - should still run, but not visible ? ?
Standby The application should freeze itself. It is still loaded only in order to quickly continue operation ? ?

Detailed Descriptions

  • Background Visible: The browser should use less power if it can, but only minor optimizations.
  • Background Invisible: The browser should use less power if it can, and can stop showing animations and other costly visual effects.


System Notices

Notice Description Android Maemo
AC Power Connected to a power source ? ?
Battery Running on battery power ? ?
Low Battery Battery will last for a while longer, but minutes - not hours ? ?
Critical Battery Battery can stop working at any time ? ?
Display Off Screen has been shut off ? ?
Display Dimmed Screen has been dimmed, either manually or by user inactivity ? ?
Display On Screen has been turned on ? ?