Performance Optimization Articles
Android On-device AI Real-time Video: CameraX Frames, GPU Preprocessing, and LiteRT Inference
A practical end-to-end Android real-time video AI pipeline, covering CameraX head-of-line blocking, GPU YUV preprocessing, LiteRT inference jitter, async staging, and frame-expiration control.
Read Post
Android On-device AI Prompt Engineering: Token Budgets, Few-shot Compression, and TTFT Control
A practical Android on-device LLM prompt-engineering guide showing how token budgeting, few-shot template compression, and dynamic budget switching reduced first-token latency from 8.7 seconds to under 2 seconds.
Read Post
Android On-device AI System Health: Dynamic Inference Degradation by Thermal, Battery, and Memory Pressure
A practical three-dimensional degradation strategy for Android on-device AI inference, coordinating thermal status, battery state, and memory pressure with normalized scoring, model preloading, and state migration.
Read Post
Android Memory Leak Governance: LeakCanary, HPROF, and Production Monitoring
A full Android memory leak governance workflow covering LeakCanary's WeakReference sentinel, HPROF reference-chain analysis, production retained-object monitoring, conditional dumps, and CI gates.
Read Post
Android RenderThread and HWUI: From DisplayList Recording to GPU Rasterization
A deep dive into Android HWUI rendering, main-thread and RenderThread responsibilities, DisplayList recording, RenderNode synchronization, Skia/Vulkan rasterization, and Compose rendering.
Read Post
Android ANR Governance: From Main-Thread Stalls to ANR Trace Analysis
A practical ANR analysis workflow covering signal-triggered traces, MessageQueue backlog, Binder timeouts, lock contention, Perfetto alignment, and production monitoring.
Read Post
Android Cold Start Optimization: From Zygote Fork to First Frame
A Perfetto-driven Android cold start optimization guide covering Zygote fork, bindApplication, Activity creation, first-frame composition, ContentProvider traps, layered initialization, and Binder backlog.
Read Post
Android 16 Edge-to-Edge: WindowInsets Dispatch and System Bar Adaptation
Android 16 treats forced edge-to-edge as a breaking change for targetSdk 36 apps. This guide explains the WindowInsets dispatch path and practical adaptation strategies for both View and Compose UIs.
Read Post
Android Local LLM Inference: LiteRT, MediaPipe, Quantization, and Production Trade-offs
A practical guide to Android local LLM inference across LiteRT, ONNX Runtime Mobile, MediaPipe LLM Inference, INT4 quantization, GPU delegates, KV cache memory, and device fallback.
Read Post
Android On-device AI Benchmarking: Latency, Throughput, Power, and Thermal Degradation
A practical benchmark methodology for Android on-device AI inference across latency, throughput, power, thermal throttling, long-tail metrics, GPU sync, and automated test reports.
Read Post
Android Official Skills Deep Dive: Redefining Android Development Workflows with AI Agents
A deep dive into Google's official android/skills repository, a structured instruction set for AI agents that covers Compose migration, Navigation 3, R8 optimization, and other core Android workflows.
Read Post
Android Bitmap Memory Model: From Java Heap to Hardware Bitmap
A deep dive into how Android Bitmap pixel storage moved between native heap, Java heap, and GPU memory, and what that means for OOM prevention.
Read Post
Android RecyclerView Cache: Four Levels, Reuse, and Prefetch
A deep dive into RecyclerView's four cache layers, their different hit costs, GapWorker prefetch, and practical tuning for smoother scrolling.
Read Post
Inside the Android ART dex2oat Pipeline: From DEX Bytecode to OAT Machine Code
A practical walkthrough of the dex2oat pipeline, compiler filter trade-offs, JIT and AOT cooperation, and Baseline Profile startup optimization.
Read Post
Android On-device AI Chat Compose UI Architecture: Streaming Rendering and Multi-turn Conversation State
Compose UI patterns for on-device LLM chat apps, using token buffering, state isolation, and a single source of truth to keep streaming output smooth.
Read Post
Kotlin Value Classes and Inline Classes: Zero-Overhead Type Safety
A deep dive into Kotlin inline class and value class compilation, boxing elimination, JVM signatures, Android performance patterns, and serialization compatibility.
Read Post
Kotlin Symbol Processing: KSP from Annotation Scanning to Code Generation
A full walkthrough of KSP as a KAPT replacement, from SymbolProcessor and Resolver to CodeGenerator, incremental builds, multiplatform support, and migration.
Read Post
Android Cache Systems: LruCache, DiskLruCache, and Offline-first Design
A practical deep dive into Android caching, from LruCache and DiskLruCache internals to three-level cache coordination, consistency, and offline-first engineering.
Read Post
Android Stability Monitoring: From Crash SDKs to APM Dashboards
A deep dive into Android production stability monitoring, including Java and native crash collection, ANR detection, reporting pipelines, stack clustering, and APM dashboards.
Read Post
Android On-device Speech Recognition: From SpeechRecognizer to Android 16 ASR
A full-stack look at Android on-device speech recognition, from AudioRecord capture and SpeechRecognizer APIs to Android 16's built-in ASR engine.
Read Post