How to deal with high performance and battery issues in android programming

852 views
749 views

Published on

Published in: Technology, Business
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
852
On SlideShare
0
From Embeds
0
Number of Embeds
33
Actions
Shares
0
Downloads
42
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

How to deal with high performance and battery issues in android programming

  1. 1. Battery optimization in Android apps Ngô Thanh Xuyên xuyennt@vng.com.vn
  2. 2. • Battery consumption: Why should we care? • What consumes power? • How can we do better?
  3. 3. Battery consumption: Why should we care?
  4. 4. Xuyên. Sao app hao pin vậy em? App gì hao pin quá vậy hả? Gỡ app Anh ơi! Sao app hao pin vậy anh. Em thích app anh lắm. Nhưng chắc em dùng app khác  ?
  5. 5. What consumes power?
  6. 6. What consumes power? Network I/O Read write/local file database Sleep/Standby Mode
  7. 7. How can we do better?
  8. 8. Network I/O • Open connection • Avoid polling and use TCP persistent connections • Avoid multiple connections • Data • Data format • Compression • Network Optimization • Network parameters • Connection policy
  9. 9. Read write/local file database • Memory Caching • Use batch processing
  10. 10. Sleep/Standby mode
  11. 11. How can we do better? • Monitoring the Battery Level and Charging State • Determine the Current Charging State • Monitor Changes in Charging State • Use coarse network location
  12. 12. AT&T Application Resource Optimizer (ARO) AT&T ARO has two components: • ARO Data Collector: • Captures the data traffic of a mobile device and stores that information in trace files • ARO Data Analyzer: • Evaluates trace data and generates statistical and analytical results based on recommended best practices • https://developer.att.com
  13. 13. Agilent 34401A Multimeter • Agilent 34401A Multimeter

×