Android AI code samples
Cloud
Android AI Sample Catalog
The Android AI Sample Catalog is a standalone application that gives you access to individual, self-contained samples that illustrate the possibilities for generative AI capabilities that can be unlocked by Google's AI models.
Cloud
On-device
Jetpacker
Jetpacker is a travel planning sample app that showcases how to build personalized, intelligent, and agentic experiences on Android. It demonstrates the following capabilities:
- On-device inference with Gemini Nano and the ML Kit GenAI APIs.
- Cloud and hybrid inference with the Firebase AI Logic SDK.
- Android system integration using the AppFunctions API.
- In-app agentic workflows powered by the Agent Development Kit (ADK) and Jetpack Compose A2UI Renderer.
Cloud
On-device
Androidify
Androidify is a sample app that showcases how to integrate with Firebase AI Logic SDK to build multimodal AI features in your Android apps. The app transforms your selfie into a bot version of yourself with your unique likeness. The sample is a showcase of Material 3 Expressive, Jetpack Compose, CameraX, and Firebase AI Logic SDK.
The sample also demonstrates how to integrate with the ML Kit Subject Segmentation API to extract the bot from the background.
Cloud
SociaLite: A sample social network app
The SociaLite sample app demonstrates how to use Android platform APIs to implement features that are commonly deployed in social network and communications apps. We have integrated the Gemini API using the Firebase AI Logic SDK to demonstrate how chatbot capabilities can be implemented in your own Android apps.