Android Articles

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.

Kotlin Sealed Classes and Interfaces: Type-Safe UI State

A practical guide to Kotlin sealed classes and sealed interfaces, from exhaustive when checks to type-safe Compose UI state, MVI reducers, Flow results, and Navigation routes.

Kotlin Context Receivers: Type-Safe Implicit Contexts

How Kotlin Context Receivers provide type-safe implicit context injection, avoid Multiple Receivers ambiguity, and fit Android ViewModel and Compose architecture.

Jetpack Compose Phases: From Composition to Layout and Drawing

A deep dive into the three Jetpack Compose phases: Composition, Layout, and Drawing, with state reads, skip behavior, and performance guidance.

From Pixels to Soul: Android Typography and Font Architecture

A complete guide to typography and Android font architecture, from type basics and font files to rendering, downloadable fonts, Compose, accessibility, and testing.

Android Large IPC: From Binder's 1 MB Limit to ASharedMemory

A practical guide to large cross-process data transfer on Android, comparing Binder limits, MemoryFile, ASharedMemory, Surface, and ContentProvider.

Android Custom IME: InputMethodService, Process Isolation, and Candidates

A practical guide to Android custom input methods, covering InputMethodService, IME process isolation, InputConnection, candidate engines, and keyboard rendering.

Android Custom Lint Rules: From UAST Trees to Detector Implementation

A practical end-to-end guide to Android custom Lint rules, covering UAST, Detector implementation, packaging, integration, and debugging.

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.