From the course: Building AI-Powered Android Apps with Gemini

Unlock this course with a free trial

Join today to access over 24,300 courses taught by industry experts.

Create the Gemini Starter app

Create the Gemini Starter app

- [Instructor] In the first part of this course, I described how to use Gemini in Android Studio to speed up your development process, but you can also integrate Google's Gemini into your own Android apps by using one of two APIs provided by Google. Your app's users can then send queries to Gemini and you can display the results. I'm going to describe how to use the Gemini API. Google states very clearly that this API should only be used to prototype and test Android apps. Due to security considerations, it should not be used in production apps, but it offers a great free way to get started and explore what kinds of integrations are possible. In Android Studio, Meerkat or later, you can create a new app using a template that already has a lot of the code that you need. I'll click New Project from the welcome screen and choose the Gemini API Starter template. Next, I'll set the name of my project to Gemini Starter. Notice that the package name starts with com.example, and that means…

Contents