Gemini AI with Android Studio

Whenever I got a chance to try and use Gemini AI model, the results were disappointing. The results reflected that the context was always not enough. However, other tools like ChatGPT, Github Copilot they were able to safely assume the default context and provide relevant answers. Only when the prompts were carefully crafted with TCREI framework (Tiny Crab Rode Enormous Iguana – Task, Context, Reference, Evaluate, Iterate), I got a decent response from Gemini. Until last week, I had ChatGPT (for personal) and Github Copilot (for work) as my top go-to AI assistants.

Generated by gemini.google.com

The agent also helped in writing Github Actions workflow yaml files and also a pristine and neat ReadMe.md with badges.

Within 4 days, I was able to get the Android app to a decent shape and even upload to Google Playstore.

Though most code is written by Gemini, I am still the proud owner for the few lines of code I added by hand. The source code is available here –> https://github.com/sudhans/Image2Pdf

Gotchas: There were a few times, the Agent was not able to refactor/write to the same file and it kept retrying. I had to force stop the task. When changes were made manually, the agent took it for granted and rolled back the manual changes – Eg. a deprecated method call was updated as per the documentation.

The Agents are here for a revolution. The impact will be on all industries – especially IT and how things are done. This also reminds me of the famous quote from the movie – iRobot

Note: cloudfare.com is down today and I got time for posting 🙂 Cloudfare took down Udemy, Kodecloud, Pluralsight, ChatGPT along with it.

Scroll to Top