How to integrate Gemini API in android Android App Kotlin Jetpack Compose(MVVM)
#jetpackcompose #androidstudio #kotlin #mvvm
In this video we will build a prompt app powered by the new Google AI model Gemini. Enjoy!
Get the source code on Github
Get an API_KEY here:
https://aistudio.google.com/app/apikey
#kotlin #androidstudio #jetpackcompose #coroutines #flowsimulation #mvvm
TimeCodes
0:00 – Intro
0:16 – Set up
3:16 – Add API key to the project
3:45 – Set BuidConfig
4:51 – ViewModel
7:31 – UI State
8:41 – Use the UI state in the viewModel
10:32 – App UI
13:50 – Internet Permission
Views :15
android studio