Power usage
On a mobile device, there are basically the same power-saving mechanisms as on an embedded one, such as avoiding waking up peripheral devices and sensors (such as GPS), minimizing of network transfers and disk I/O, and reducing activity when an application is not visible.
One difference from embedded devices is that the Android OS adds its own power management extension, built on top of Linux power management, which will try to put the system, and thus the CPU, into sleep mode as soon as possible. An application can request and also call WakeLock from PowerManager to prevent the system from going into sleep mode. We can do this from Qt through the QAndroidJniObject class, but normally it's not recommended, as it will increase ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access