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
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.
On-device
Google AI Edge SDK sample app
The Google AI Edge SDK sample app demonstrates how to use the Google AI Edge SDK to access Gemini Nano on Android.
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.