High performance Android apps improve ratings with speed, optimizations, and testing
Unique and clever ideas are important when building a hot-selling Android app, but the real drivers for success are speed, efficiency, and power management. With this practical guide, you’ll learn the major performance issues confronting Android app developers, and the tools you need to diagnose pro...
Other Authors: | |
---|---|
Format: | eBook |
Language: | Inglés |
Published: |
Sebastopol, CA :
O'Reilly
2015.
|
Edition: | First edition |
Subjects: | |
See on Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629689506719 |
Table of Contents:
- Copyright; Table of Contents; Foreword; Preface; Who Should Read This Book; Why I Wrote This Book; Navigating This Book; Using Code Examples; Conventions Used in This Book; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1. Introduction to Android Performance; Performance Matters to Your Users; Ecommerce and Performance; Beyond Ecommerce Sales; Performance Infrastructure Savings; The Ultimate Performance Fail: Outages; Performance as a Rolling Outage; Consumer Reaction to Performance Bugs; Smartphone Battery Life: The Canary in the Coal Mine
- Testing Your App for Performance IssuesSynthetic Testing; Real User Monitoring (RUM); Conclusion; Chapter 2. Building an Android Device Lab; What Devices Are Your Customers Using?; Device Spec Breakdown; Screen; SDK Version; CPU/Memory and Storage; What Networks Are Your Customers Using?; Your Devices Are Not Your Customers' Devices; Testing; Building Your Device Lab; You Want X,000 for Devices?; So What Devices Should I Pick?; Beyond Phones; Android Open Source Project Devices; Other Options; Additional Considerations; My Device Lab; Conclusion
- Chapter 3. Hardware Performance and Battery LifeAndroid Hardware Features; Less Is More; What Causes Battery Drain; Android Power Profile; Screen; Radios; CPU; Additional Sensors; Get to Sleep!; Wakelocks and Alarms; Doze Framework; Basic Battery Drain Analysis; App-Specific Battery Drain; Coupling Battery Data with Data Usage; App Standby; Advanced Battery Monitoring; batterystats; Battery Historian; Battery Historian 2.0; JobScheduler; Conclusion; Chapter 4. Screen and UI Performance; UI Performance Benchmarks; Jank; UI and Rendering Performance Updates in Android; Building Views
- Hierarchy ViewerAsset Reduction; Overdrawing the Screen; Testing Overdraw; Overdraw in Hierarchy Viewer; Overdraw and KitKat (Overdraw Avoidance); Analyzing For Jank (Profiling GPU Render); GPU Rendering in Android Marshmallow; Beyond Jank (Skipped Frames); Systrace; Systrace Screen Painting; Systrace and CPU Usage Blocking Render; Systrace Update-I/O 2015; Vendor-Specific Tools; Perceived Performance; Spinners: The Good and the Bad; Animations to Mask Load Times; The White Lie of Instant Updates; Tips to Improve Perceived Performance; Conclusion; Chapter 5. Memory Performance
- Android Memory: How It WorksShared Versus Private Memory; Dirty Versus Clean Memory; Memory Cleanup (Garbage Collection); Figuring Out How Much Memory Your App Uses; Procstats; Android Memory Warnings; Memory Management/Leaks in Java; Tools for Tracking Memory Leaks; Heap Dump; Allocation Tracker; Adding a Memory Leak; Deeper Heap Analysis: MAT and LeakCanary; MAT Eclipse Memory Analyzer Tool; LeakCanary; Conclusion; Chapter 6. CPU and CPU Performance; Measuring CPU Usage; Systrace for CPU Analysis; Traceview (Legacy Monitor DDMS tool); Traceview (Android Studio); Other Profiling Tools
- Conclusion