-
Understanding battery drain
- Used
batteryHistorian
to understand battery drain of the sample app - We can apply filter while charging to conserve battery, this was done in the activity.
- Used
-
Wake Lock and Battery Drain || Remedy by Job Scheduler
- Holding on the
wakeLock
for too long, we can drain the battery easily. Manual releasing also makes its usage tedious. jobScheduler API
makes the systen defer your wakelock task at appropriate situations with collectively other wakelocksjobInfo
object andservice
needs to be created.- see the DevBytes video
- Holding on the
-
Minimise cellularRadio usage || wait for WiFi
- use
jobScheduler API
to defer tasks to only when WiFi is connected.
- use