Skip to content

An Android sample for Gemini API (GENERATIVE AI and VERTEX AI SDKs)

Notifications You must be signed in to change notification settings

hassanabidpk/io-extended-2024

Repository files navigation

io-extended-2024

This Android sample app demonstrates how to use state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications. It includes both gnerative AI SDK for prototyping as well as VertexAI Firebase SDK for production-grade applications.

Prerequisites

This guide assumes that you're familiar with using Android Studio to develop apps for Android.

Make sure that your development environment and Android app meet the following requirements:

  • Android Studio (latest version or Koala canary)
  • Your Android app must target API level 21 or higher.

Gemini API Setup

Google AI Studio Key (for prototyping)

Gemini API using the Vertex AI for Firebase SDK (for production-grade VertexAI powered Applications)

  • Setup a irebase project and connect your app to Firebase by following this guide

Running the sample

From Android Studio

  • File -> New -> Import Project -> Specify the root io_extended_24 folder.
  • Choose the app from the run configuration dropdown list.
  • Click Run.

Features

This sample showcases the following API capablilites:

  • Chat Prompts
  • Function Calling

Releases

No releases published

Packages

No packages published

Languages