Android On-Device AI / AICore Guide
android_ondevice_aiDiscover how to implement on-device AI with Android AICore and ML Kit, enabling private, offline features like smart reply and object detection without network calls or API costs.
Instructions
On-device AI reference — Android 16 AICore and ML Kit Gen AI API. Used by Gmail (Smart Reply), Google Photos (object detection), Pixel Screenshots (semantic search). The official architecture: wrap ML models behind repository interfaces so on-device (AICore) and cloud (Vertex AI) are swappable without touching the UI layer. No network round-trip. No API costs. No privacy exposure. Works offline. AI tools default to cloud API calls when on-device is the 2026 answer for Pixel devices. Topics: 'overview' (architecture pattern, when to use), 'setup' (dependencies, availability check, fallback pattern), 'smart reply' (Gmail-style suggestion chips), 'ml kit' (non-generative ML — image labeling, barcode, face detection, translation).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Topic: 'overview', 'setup', 'smart reply', 'ml kit', 'architecture' |