بنقرة واحدة
android-gemini-nano
Use when integrating Google Gemini Nano via AICore for on-device ML.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when integrating Google Gemini Nano via AICore for on-device ML.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Handling Bluetooth Low Energy, flow wrappers, and Android 12+ permissions.
Seamless integration of CameraX with Google ML Kit for vision tasks.
Deep-dive skills for banking and healthcare apps.
Automated UIAutomator tests and Hardware mocking setup.
Expanding KMP shared UI to cover Compose Multiplatform edge-cases.
Bridging Native iOS and Desktop APIs back into KMP.
| name | android-gemini-nano |
| description | Use when integrating Google Gemini Nano via AICore for on-device ML. |
| category | ai-native |
| risk | medium |
| source | community |
| date_added | 2026-04-07 |
| metadata | {"triggers":["@gemini-nano","aicore","on-device ai"]} |
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.
val generativeModel = GenerativeModel("gemini-nano")
// ALWAYS verify availability first
val isAvailable = generativeModel.isAvailable()
if (!isAvailable) {
// Request download or show fallback UI
}
generateContentStream to stream the UI update instead of waiting for the full response.viewModelScope.launch {
generativeModel.generateContentStream(prompt)
.catch { e -> handleError(e) }
.collect { chunk ->
_uiState.update { it.copy(text = it.text + chunk.text) }
}
}
GenerativeModel is part of the com.google.ai.client.generativeai SDK. Do NOT hallucinate custom AICoreManager wrapper singletons.