Cargando…

Android High Performance Programming.

Build fast and efficient Android apps that run as reliably as clockwork in a multi-device worldAbout This Book Wide coverage of various topics that help in developing optimal applications Explore the concepts of Advanced Native Coding in depth A must-have for professional-standard Android developers...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Manas, Enrique Lopez
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Packt Publishing, 2016.
Edición:1.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Authors; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introduction: Why High Performance?; Why does the performance of an application mean so much to so many?; Manual testing and automatic testing; ANR and delays in software; What triggers ANRs and how can I avoid them?; Android architecture; Dalvik Virtual Machine; Memory management; Energy consumption; Java language; Native Development Kit or how to develop with native code when needed; Three limits in application responsiveness; Business value of software quality; Summary.
  • Chapter 2: Efficient DebuggingAndroid Debug Bridge; Dalvik Debug Monitor Server; Capturing and analyzing thread information; Heap analysis and visualization; Allocation tracker; Network usage; Emulator Control; System status; Debugging the UI; Profiling with Hierarchy Viewer; Systrace; Android device debug options; Android Instant Run; GPU profiler; Running a trace; ClassyShark; Getting started; Summary; Chapter 3: Building Layouts; Walkthrough; Rendering performance; Screen tearing and VSYNC; Hardware acceleration; Overdraw; Multi-window mode; Overview; Configuration; Management.
  • Drag and dropPerformance impact; Best practices; Provided layout overview; Hierarchical layout management; Reusing layouts; ViewStub; AdapterViews and view recycling; The ViewHolder pattern; Custom views and layouts; Screen zoom; Debugging tools; The Design view; Hierarchy Viewer; Tree View; View properties; Tree overview; Layout View; On device tools; Debugging GPU overdraw; Profile GPU rendering; Systrace; Summary; Chapter 4: Memory; Walkthrough; How memory works; Garbage collection; Shared memory; Runtime; Android N JIT compiler; Memory leak; Memory churn; References; Memory-side projects.
  • Project Svelte and Android NBest practices; Data types; Autoboxing; Sparse array family; ArrayMap; Syntax; Collections; Enumerations; Constants; Object management; Strings; String concatenation; Local variables; Arrays versus collections; Streams; Memory patterns; The object pool pattern; The FlyWeight pattern; Android component leaks; Activities; Services; Processes; The memory API; Main components and memory management; Debugging tools; LogCat; Dalvik; ART; The ActivityManager API; StrictMode; Dumpsys; Meminfo; ProcStats; Summary; Chapter 5: Multithreading; Walkthrough; Threading basics.
  • Multicore CPUsThreads; Multithreaded applications; Thread safety; Android multithreading environment; Processes; Android application thread; The UI thread; Worker threads; The binder thread; Android thread messaging; Best practices; Threads; HandlerThread; When to use; AsyncTask; Methods; Generics parameters; States management; Executor; When to use; Loaders; LoaderManager; LoaderCallbacks; Provided loaders; When to use; Services; Life cycle; Started Service; Bound Service; IntentService; Inter-process communication; Remote Procedure Call; AIDL; Messenger; Advanced techniques.