Android Articles

Isolated-Process Inference for Android On-Device AI

Use a separate Android process and AIDL to isolate model memory and native crashes while preserving reliable inference lifecycle management.

Android ARCore: SLAM, Environment Understanding, and Light Estimation

Build stable Android AR experiences by understanding ARCore tracking, planes and depth, light estimation, rendering timing, and Compose integration.

Observability for Android On-Device AI Inference

Trace each on-device inference, build multi-dimensional performance profiles, and detect production regressions across fragmented Android hardware.

Android Text Layout: StaticLayout, FontMetrics, and LineBreaker

Learn Android text layout internals, from StaticLayout and font metrics to LineBreaker strategies and custom View rendering.

Android Overlay Windows: Permissions, WindowManager, and Compatibility

Build reliable Android overlay windows across platform versions, with permission handling, touch behavior, and OEM compatibility guidance.

Android Storage Access Framework: DocumentsProvider and DocumentFile

Understand how SAF unifies local and cloud documents through content URIs, DocumentsProvider, URI grants, and DocumentFile.

Privacy-First On-Device AI on Android

Build privacy-aware Android on-device AI with data minimization, transparent decisions, and audit-ready engineering practices.

ONNX Runtime on Android: Export, Quantize, and Run Models

An end-to-end guide to ONNX Runtime for Android, from export and integration through INT8 acceleration and operator compatibility.

Android LiveData Internals and a Safe Flow Migration

Explore LiveData lifecycle behavior and stale-event pitfalls, then migrate incrementally to StateFlow and SharedFlow.

Deploying ExecuTorch Models on Android

A practical ExecuTorch path from native PyTorch export to `.pte` deployment on Android, including AOT delegates and runtime trade-offs.

Android On-Device LLM Latency: From Tap to First Token

Break down and optimize the full Android on-device LLM path, from user input and model loading to prefill, decode, and first-token rendering.

Android APK Signing: From V1 JAR to V4 Incremental Signatures

Trace the evolution of Android APK signing schemes, their verification models, security implications, and release-time checks.

Multi-Model Orchestration for Android On-Device AI

Design Pipe-style workflows for multiple Android models, with routing, fallback, model management, and coroutine scheduling.

Android eBPF for Network Monitoring and Performance Tracing

An end-to-end look at eBPF on Android, from verified kernel programs to BpfNetMaps and Perfetto-based observability.

Choosing an Android On-Device AI Runtime: LiteRT to ExecuTorch

A production-oriented comparison of LiteRT, MediaPipe, ExecuTorch, ONNX Runtime, and llama.cpp for Android inference.

On-Device LLM Tokenization and Decoding on Android

How BPE tokenization, Top-K, and Top-P sampling shape quality, latency, and memory use in Android on-device AI.

Inside Android Context: ContextImpl and Component Lifecycles

A practical look at ContextImpl and the differences between Application, Activity, and Service contexts for resources, themes, windows, and lifecycle safety.

Android App Standby Buckets: Background Resource Limits Explained

How Android classifies app activity, applies background execution limits, and how to design work that remains reliable under standby restrictions.

Speeding Up Android WebView: Resource Interception and Offline Package Caching in Practice

A practical walkthrough of using shouldInterceptRequest to serve WebView resources from a local offline package, cutting first-paint time from 2.8s to 0.6s.

Android Desktop Windowing and Freeform Windows: From Display Partitioning to Multi-Instance Multitasking

An end-to-end look at Android desktop windowing and freeform windows, covering DisplayContent partitioning, Task window management, multi-instance parallelism, and input dispatch, with real adaptation lessons.