-
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
forked from santhoshvai/Battery-Sample
-
Notifications
You must be signed in to change notification settings - Fork 0
medhachaitanya/Battery-Sample
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Code for "Android Performance - Battery lesson"
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 100.0%