Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AkashKobal authored Apr 17, 2024
1 parent 8da208d commit d984bfb
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@
## This repository outlines how you can use Android Studio to build an application that implements Generative AI using the [Google AI SDK](http://ai.google.dev/tutorials/android_quickstart?utm_source=android&utm_medium=referral). It lays out the process in three steps. Before beginning, ensure that you are running the [latest preview version of Android Studio](https://developer.android.com/studio/preview).

### Step 1: Build on the New Project template for AI
_Start Android Studio and open a new project using File > New Project. Select the new Gemini API starter template._
_Start Android Studio and open a new project using File > New Project. Select the new Gemini API starter template._<br>

![alt text](https://github.com/AkashKobal/Gemini-App-Starter/blob/main/screenshots/Screenshot%202024-04-16%20211255.png)<br>
![alt text](https://github.com/AkashKobal/Gemini-App-Starter/blob/main/screenshots/Screenshot%202024-04-16%20211317.png)<br>


### Step 2: Generate the API key
_In the next step of the wizard, after you choose a project name and location, provide an API key for authentication to the Gemini API. If you don't have a Gemini API key, click the link provided in the wizard to navigate to Google AI Studio and request a new key. Once completed, copy your new API key back into the wizard. Click Finish._
_In the next step of the wizard, after you choose a project name and location, provide an API key for authentication to the Gemini API. If you don't have a Gemini API key, click the link provided in the wizard to navigate to Google AI Studio and request a new key. Once completed, copy your new API key back into the wizard. Click Finish._<br>

![alt text](https://github.com/AkashKobal/Gemini-App-Starter/blob/main/screenshots/Screenshot%202024-04-16%20211353.png)<br>
![alt text](https://github.com/AkashKobal/Gemini-App-Starter/blob/main/screenshots/Screenshot%202024-04-16%20223922.png)<br>
![alt text](https://github.com/AkashKobal/Gemini-App-Starter/blob/main/screenshots/Screenshot%202024-04-16%20224046.png)<br>

### Step 3: Start prototyping
_Android Studio will automatically set up a project for you with a connection to the Gemini API, simplifying your workflow. Click Run to see the code in action in the Android Emulator. The app comes with a hard-coded prompt asking the model to "Summarize the following text for me"; you can edit or expand the prompt directly in the code to modify what it can do. You can learn more about creating prompts in the Google AI Studio documentation._
_Android Studio will automatically set up a project for you with a connection to the Gemini API, simplifying your workflow. Click Run to see the code in action in the Android Emulator. The app comes with a hard-coded prompt asking the model to "Summarize the following text for me"; you can edit or expand the prompt directly in the code to modify what it can do. You can learn more about creating prompts in the Google AI Studio documentation._<br>

![alt text](https://github.com/AkashKobal/Gemini-App-Starter/blob/main/screenshots/Screenshot%202024-04-16%20222853.png)<br>
![alt text](https://github.com/AkashKobal/Gemini-App-Starter/blob/main/screenshots/Screenshot%202024-04-16%20224408.png)<br>
![alt text](https://github.com/AkashKobal/Gemini-App-Starter/blob/main/screenshots/Screenshot%202024-04-16%20224423.png)<br>

0 comments on commit d984bfb

Please sign in to comment.