Does Android have a different behavior for WakeLock when the device is connected to power source? -


to give context: trying measure energy consumption of best practices in android apps. have refactored app using wakelock keep screen on , use flag flag_keep_screen_on instead. surprisingly, able have small improvement on energy consumption.

i expecting cpu able go low power state, spend less energy.

is there different behavior cpu power management in these conditions, or use of flag not expected have reasonable effect?

i measuring device odroid-xu has connected power. android version 4.2.2 - api level 17.

the reason didn't find difference

wakelock prevents device going sleep when device's screen off, while when using flag_keep_screen_on display using power along app, , believe me takes reasonable amount of power.

so result same, while using flag_keep_screen_on might result in bad ux.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -