AI Prompts for Gemini for Android

20 of the best prompts for Gemini for android, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.

AI Prompts for Gemini for Android

20 of the best prompts for Gemini for android, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.

Scroll to explore

Published July 5, 2026

Write better Android code, use Jetpack components correctly, debug faster, and build apps that feel polished and performant. Built across 4 distinct stages covering Kotlin and Language, Jetpack and Architecture, Jetpack Compose and more, this guide gives you one expert prompt per step so you never have to write from scratch or guess what the AI needs. The prompts work in ChatGPT, Claude, and Gemini and are designed to get usable output on the first try.

Kotlin and Language

Write idiomatic, modern Kotlin for Android.

Rewrite Java Android code

Rewrite this Java Android code in modern Kotlin: [PASTE CODE]. Use data classes, extension functions, null safety, and coroutines where appropriate.

Kotlin and Language

Explain Android-specific example

Explain [DESCRIBE KOTLIN CONCEPT, E.G. "SEALED CLASSES", "FLOW VS LIVEDATA", "COROUTINE SCOPES"] with an Android-specific example. Show the common mistakes and how to avoid them.

Kotlin and Language

Keep getting

I keep getting a NullPointerException in this Kotlin code: [PASTE CODE]. Explain why and show how to handle nullability correctly with Kotlin's type system.

Kotlin and Language

Write Kotlin extension function

Write a Kotlin extension function that [DESCRIBE UTILITY]. Show how to use it across multiple activities or fragments.

Kotlin and Language

When should I

When should I use a data class vs a sealed class vs an enum in Android? Show a real example from an Android app where each one is the right choice.

Kotlin and Language

Jetpack and Architecture

Use Jetpack components correctly and build maintainable Android architecture.

MVVM architecture

Set up MVVM architecture for [DESCRIBE FEATURE]. Show the ViewModel, Repository, and UI layer with proper separation of concerns and Kotlin coroutines.

Jetpack and Architecture

Write nav graph setup

I need to manage [DESCRIBE NAVIGATION] in my app with Navigation Component. Write the nav graph setup, the fragment transitions, and how to pass arguments between destinations.

Jetpack and Architecture

Write Room database setup

Write a Room database setup for [DESCRIBE DATA MODEL]: entity, DAO, database class, and a Repository that exposes data as Flow. Show how to query and insert data.

Jetpack and Architecture

Implement Show the setup

Implement the [DESCRIBE JETPACK COMPONENT, E.G. "WORKMANAGER BACKGROUND TASK" OR "DATASTORE FOR PREFERENCES"]. Show the setup, the key configuration, and a usage example.

Jetpack and Architecture

ViewModel is doing

My ViewModel is doing too much: [PASTE VIEWMODEL]. Refactor it using clean architecture principles, moving business logic to a use case layer and data operations to a repository.

Jetpack and Architecture

Jetpack Compose

Build modern Android UI with Compose.

Write Composable

Write a Composable for [DESCRIBE UI COMPONENT]. Make it reusable with proper parameters, preview annotations, and theming support.

Jetpack Compose

Rewrite XML layout

I am moving from XML layouts to Jetpack Compose. Rewrite this XML layout as a Composable: [PASTE XML]. Explain the key differences.

Jetpack Compose

Manage state

How do I manage state in this Compose screen: [DESCRIBE SCREEN AND STATE]. Compare remember, rememberSaveable, ViewModel state, and when to use each.

Jetpack Compose

Write Compose navigation setup

Write the Compose navigation setup for an app with these screens: [LIST SCREENS]. Include the NavHost, composable routes, and how to navigate with arguments.

Jetpack Compose

Compose screen is slow:

This Compose screen is slow: [DESCRIBE OR PASTE COMPOSABLE]. Identify what is causing unnecessary recompositions and how to fix it.

Jetpack Compose

Debugging and Performance

Find bugs faster and make your app faster.

App crashes

My app crashes with this error: [PASTE CRASH LOG AND RELEVANT CODE]. Walk me through the root cause and the fix.

Debugging and Performance

App is slow

My app is slow on [DESCRIBE SCREEN OR ACTION, E.G. "A LONG LIST" OR "SWITCHING BETWEEN TABS"]. What profiling tools should I use and what are the most common causes of this type of slowness?

Debugging and Performance

Memory leak

I have a memory leak in my Android app: [DESCRIBE SYMPTOMS]. How do I find it and what are the most common causes in Android apps?

Debugging and Performance

Write Android instrumentation test

How do I write an Android instrumentation test for [DESCRIBE FEATURE]? Show the test setup, the UI interaction, and the assertions.

Debugging and Performance

App uses too

My app uses too much battery. What are the most common causes of excessive battery drain in Android apps and how do I diagnose which one is affecting my app?

Debugging and Performance

Frequently asked questions

Can Gemini help with Android development and Kotlin?+

Yes. Gemini writes idiomatic Kotlin, helps set up Jetpack components, explains MVVM architecture, and assists with Jetpack Compose, covering the full modern Android development stack.

How does Gemini help with Jetpack Compose?+

Gemini writes reusable Composables, helps migrate XML layouts to Compose, explains state management patterns, and identifies unnecessary recompositions causing performance issues.

Can Gemini help debug Android crashes?+

Yes. Paste the crash log and relevant code and Gemini will walk through the root cause and the fix, and explain how to prevent the same class of error.

What Android topics does Gemini handle best?+

MVVM architecture, Room, Navigation Component, Jetpack Compose, WorkManager, Kotlin coroutines and Flow, and common debugging scenarios are all areas where Gemini gives accurate, practical guidance.

Can Gemini help with Android performance issues?+

Yes. Describe the symptom and Gemini will suggest the right profiling approach, identify the most common causes for that type of issue, and guide you to the fix.

More Gemini prompt guides

Gemini for WritingGemini for ResearchGemini for CodingGemini for Data AnalysisGemini for MarketingGemini for Resume WritingGemini for Email MarketingGemini for YouTube ScriptsGemini for Meeting SummariesGemini for Cover LettersGemini for Ad CopyGemini for Business PlansGemini for Cold EmailsGemini for Social Media ContentGemini for Blog WritingGemini for SEO ContentGemini for PresentationsGemini for Product DescriptionsGemini for Sales CopyGemini for Content StrategyGemini for ProductivityGemini for HealthGemini for StudyingGemini for TravelGemini for FinanceGemini for AnalysisGemini for Job DescriptionsGemini for Technical WritingGemini for Newsletter WritingGemini for Instagram CaptionsGemini for LinkedIn PostsGemini for Twitter ThreadsGemini for TikTok ScriptsGemini for DebuggingGemini for Code ReviewGemini for Unit TestsGemini for SQLGemini for Brand VoiceGemini for Google DocsGemini for Google SheetsGemini for GmailGemini for Google SlidesGemini for Multimodal TasksGemini for Project ManagementGemini for Customer ServiceGemini for HR ProfessionalsGemini for ConsultingGemini for ProposalsGemini for PythonGemini for JavaScriptGemini for DocumentationGemini for Data ScienceGemini for API DevelopmentGemini for CopywritingGemini for ScriptwritingGemini for Creative WritingGemini for UX WritingGemini for Case StudiesGemini for EntrepreneursGemini for TeachersGemini for Market ResearchGemini for LegalGemini for FreelancersGemini for EmailGemini for RecipesGemini for FitnessGemini for Personal FinanceGemini for ParentingGemini for ReactGemini for TypeScriptGemini for DevOpsGemini for TestingGemini for LawyersGemini for AccountantsGemini for NursesGemini for Real EstateGemini for SalespeopleGemini for Small BusinessGemini for EcommerceGemini for StartupsGemini for NonprofitsGemini for Job SearchGemini for Language LearningGemini for Public RelationsGemini for Mental HealthGemini for Book WritingGemini for Job InterviewsGemini for Learning SpanishGemini for Learning FrenchGemini for Learning GermanGemini for Learning JapaneseGemini for Learning PortugueseGemini for Learning ItalianGemini for Learning KoreanGemini for Learning MandarinGemini for Learning ArabicGemini for Learning HindiGemini for Weight LossGemini for ADHDGemini for College EssaysGemini for Side HustlesGemini for Retirement PlanningGemini for PregnancyGemini for DivorceGemini for GriefGemini for New ParentsGemini for MovingGemini for Making MoneyGemini for Passive IncomeGemini for FreelancingGemini for Starting an Online BusinessGemini for Digital ProductsGemini for Learning DutchGemini for Learning SwedishGemini for Learning PolishGemini for Learning TurkishGemini for Learning VietnameseGemini for Wedding PlanningGemini for Starting CollegeGemini for Job LossGemini for Chronic IllnessGemini for MenopauseGemini for Learning ThaiGemini for Learning RussianGemini for Learning IndonesianGemini for Learning TagalogGemini for Learning SwahiliGemini for Divorce RecoveryGemini for Navigating Empty NestGemini for Retirement TransitionGemini for Caregiver SupportGemini for Adoption JourneyGemini for DropshippingGemini for Content Creation IncomeGemini for Amazon FBAGemini for Print on DemandGemini for Email WritingGemini for Fiction WritingGemini for Social Media MarketingGemini for SEO WritingGemini for Content MarketingGemini for RefactoringGemini for Code DocumentationGemini for Business PlanningGemini for Pitch DecksGemini for Financial ModelingGemini for FundraisingGemini for Lesson PlanningGemini for TutoringGemini for Research PapersGemini for Online CoursesGemini for Goal SettingGemini for Time ManagementGemini for JournalingGemini for Habit BuildingGemini for Weight ManagementGemini for Mental WellnessGemini for Sleep ImprovementGemini for Nutrition PlanningGemini for Fitness PlanningGemini for Salary NegotiationGemini for LinkedIn Profile OptimizationGemini for Career Change PlanningGemini for Professional NetworkingGemini for Promotion StrategyGemini for BudgetingGemini for Investing as a BeginnerGemini for Paying Off DebtGemini for Tax PlanningGemini for Saving MoneyGemini for Novel WritingGemini for Character DevelopmentGemini for WorldbuildingGemini for Poetry WritingGemini for Story StructureGemini for Homework HelpGemini for Essay WritingGemini for Exam PreparationGemini for PlanningGemini for OrganizationGemini for BusinessGemini for Meal PlanningGemini for Personal DevelopmentGemini for InvestingGemini for Financial PlanningGemini for EditingGemini for Managing Life Transitions