android-gemini-nano
Installation
SKILL.md
Android Gemini Nano On-Device Integration 🧠
Gemini Nano allows for powerful, completely on-device AI generation. Because it runs locally via the AICore Android system service, careful life-cycle and asynchronous resource management is required.
⚡ When to Use
- When building chat interfaces, generating summaries, or drafting text without cloud latency.
- When the user asks to integrate "Gemini Nano" or "AICore".
🏗️ Core Rules / Pillars
1. AICore Dependency and Availability Check
- Pattern: AICore might not be downloaded or fully initialized. Always check availability before starting a session.
- Implementation:
val generativeModel = GenerativeModel("gemini-nano")