Android Articles

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.

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.

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.

Android On-device RAG: From Local Vector Databases to LLM Inference

A practical walkthrough of on-device Android RAG, covering document chunking, local vector search with SQLite, MediaPipe LLM inference, and performance trade-offs.

Android On-device LLM Context Window Engineering

A practical Android on-device LLM context management strategy covering layered prompt compression, summary caching, dialog state machines, and token budget allocation.

Android On-device LLM Streaming Output: From Tokens to Compose UI

A full-stack architecture for Android on-device LLM streaming output, covering KV Cache memory pressure, Kotlin Flow backpressure, and incremental Compose rendering.

Android App Memory Management: Understanding Dalvik VM Parameters

A practical guide to Android app memory limits, Dalvik heap parameters, largeHeap, and ADB commands for inspecting memory usage.

Android On-device AI Model Delivery and Version Management

A practical model delivery architecture that decouples on-device AI models from APK releases with three-layer versioning, BSDiff incremental updates, and hot rollback.

Android On-device AI Power and Thermal Management: From SoC DVFS to Thermal Throttling

A practical look at sustained on-device LLM inference, GPU power profiles, DVFS scheduling, thermal throttling, and thermal-aware load scheduling that reduced P99 latency from 890ms to 380ms.

Android On-device AI Memory Bandwidth: GPU Shared Memory to NPU Zero-copy

A practical guide to Android on-device AI memory-bandwidth optimization, from camera-to-GPU data movement to AHardwareBuffer, ION reuse, and NPU zero-copy paths.

Android Cold Start Optimization with Baseline Profiles

A practical Android cold start optimization guide covering Baseline Profile principles, generation, integration, measurement, test results, and rollout caveats.

Android On-device AI Profiling with Perfetto: NPU Scheduling and Memory Bandwidth

A Perfetto-based profiling method for Android on-device AI inference, tracing NPU scheduling, GPU counters, DRM contention, and memory bandwidth bottlenecks.

Android On-device AI Image Preprocessing: From Bitmap Pixels to Tensor Input

A full Android on-device AI preprocessing pipeline from Bitmap pixels to tensor input, covering memory layout, pixel conversion, resize choices, normalization, and zero-copy optimization.

Android Hybrid AI Routing and Offline Fallback: End-to-end On-device and Cloud Inference Scheduling

A practical Android hybrid AI inference architecture covering multidimensional routing, network-quality awareness, three-tier offline fallback, and priority request scheduling.

Android Picture-in-Picture: Lifecycle, SurfaceView, and MediaSession

A deep dive into Android Picture-in-Picture, covering Activity lifecycle sequencing, SurfaceView continuity, aspect-ratio constraints, RemoteAction, and MediaSession.

Android Plugin Architecture: ClassLoader Loading to Shadow

A deep dive into Android plugin architecture, from DexClassLoader dynamic loading and component proxies to resource isolation, native libraries, and Shadow.

Android Push Delivery: FCM, Vendor Channels, and Doze

A practical look at Android push delivery across FCM and OEM vendor channels, including keepalive behavior, Doze impact, routing, TTL, and fallback design.

Android Secure Surfaces: FLAG_SECURE, SurfaceFlinger, and DRM

A practical deep dive into Android content protection, covering FLAG_SECURE, SurfaceFlinger protected overlays, Widevine DRM, and Compose pitfalls.

Android Screen Capture Internals: MediaProjection, Surface, and MediaCodec

A deep dive into Android screen capture, covering MediaProjection permissions, VirtualDisplay, ImageReader, MediaCodec, BufferQueue transport, and frame-rate debugging.

WebView Renderer Process Crashes: A Deep Dive

A practical deep dive into Android WebView renderer process crashes, why they happen, and how to handle them from native and frontend code.