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.
Read Post
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.
Read Post
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.
Read Post
Android Text Layout: StaticLayout, FontMetrics, and LineBreaker
Learn Android text layout internals, from StaticLayout and font metrics to LineBreaker strategies and custom View rendering.
Read Post
Android Overlay Windows: Permissions, WindowManager, and Compatibility
Build reliable Android overlay windows across platform versions, with permission handling, touch behavior, and OEM compatibility guidance.
Read Post
Android Storage Access Framework: DocumentsProvider and DocumentFile
Understand how SAF unifies local and cloud documents through content URIs, DocumentsProvider, URI grants, and DocumentFile.
Read Post
Privacy-First On-Device AI on Android
Build privacy-aware Android on-device AI with data minimization, transparent decisions, and audit-ready engineering practices.
Read Post
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.
Read Post
Android LiveData Internals and a Safe Flow Migration
Explore LiveData lifecycle behavior and stale-event pitfalls, then migrate incrementally to StateFlow and SharedFlow.
Read Post
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.
Read Post
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.
Read Post
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.
Read Post
Multi-Model Orchestration for Android On-Device AI
Design Pipe-style workflows for multiple Android models, with routing, fallback, model management, and coroutine scheduling.
Read Post
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.
Read Post
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.
Read Post
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.
Read Post
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.
Read Post
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.
Read Post
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.
Read Post
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.
Read Post