1 / 24

Android App- Reduce Battery Consumption Step by Step

This PDF will explain you, how you can reduce the battery consumption during using the Android app. It helps you to understand the process step by step.

Singsys
Download Presentation

Android App- Reduce Battery Consumption Step by Step

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Battery Optimization: Android Apps With Best Practices for Zero Compromise on Performance

  2. JOB Scheduler API ✓ ✓ ✓ ✓ ✓ ✓

  3. JOB Scheduler API

  4. JOB Scheduler API Code Snippet

  5. Android Doze ✓ ✓ ✓

  6. Android Doze

  7. Android Doze Extended ✓ ✓ ✓

  8. Android Doze Extended

  9. Doze Modes Comparison

  10. Doze Optimization ✓ ✓

  11. Doze Optimization

  12. App Standby

  13. App Standby

  14. Monitoring the Battery Level and Charging State

  15. Monitoring the Battery Level and Charging State

  16. Code Snippet to determine Charging State and Method // Are we charging / charged? int status = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1); boolean isCharging = status == BatteryManager.BATTERY_STATUS_CHARGING || status == BatteryManager.BATTERY_STATUS_FULL; // How are we charging? int chargePlug = batteryStatus.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1); boolean usbCharge = chargePlug == BatteryManager.BATTERY_PLUGGED_USB; boolean acCharge = chargePlug == BatteryManager.BATTERY_PLUGGED_AC;

  17. Monitor Connectivity State to Limit Battery Drain ✓ ✓ ✓

  18. Monitor Connectivity State to Limit Battery Drain ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetwork = cm.getActiveNetworkInfo(); boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting();

  19. Key Steps required to Minimize Server Updates and Optimize the Battery Drain

  20. Key Steps to Minimize Server Updates and Optimize the Battery Drain

  21. Key Steps required to Minimize Server Updates and Optimize the Battery Drain

  22. Key Steps to Minimize Server Updates and Optimize the Battery Drain

  23. Key Steps to Minimize Server Updates and Optimize the Battery Drain

More Related