androidengineers.Book a session

LEARN WITH A CLEAR DIRECTION

Gemini API for Android

Learn Gemini request design, streaming, structured output and tool calling through an Android client and a protected inference boundary.

Intermediate to AdvancedSelf-paced7 modules13 available lessons

Your path, one skill at a time.

Learn Gemini request design, streaming, structured output and tool calling through an Android client and a protected inference boundary. Follow six teaching modules, each with a practical assignment, then combine the skills in the final project. Start with the introduction even if the tools are familiar: it defines the scope and boundaries of the path.

Self-paced. Complete each exercise and use its checkpoint before moving to the next module. Revisit any prerequisite you cannot yet demonstrate.

What you’ll learn

  • Keep privileged provider credentials out of the APK
  • Reject unsupported or malformed itinerary data
  • Demonstrate cancellation, tool rejection and a model timeout

THE CURRICULUM

Build your knowledge, step by step.

13 lessons across 7 modules. Open a module to explore its lessons and practical work.

01MODULE 01What the Gemini API provides2 lessons · Self-paced
  • Model versus service
  • Request and response parts
  • Mobile access boundary

Understand models and API capabilities before writing the client.

  1. 01What the Gemini API providesLesson · Self-paced
  2. 02Practice: What the Gemini API providesLab · Self-paced

Ready to move on when: You can explain where model credentials live and how a user request is authorized.

02MODULE 02Building the first request2 lessons · Self-paced
  • Instructions and input
  • Generation configuration
  • Typed failures

Make generation reproducible and observable.

  1. 01Building the first requestLesson · Self-paced
  2. 02Practice: Building the first requestLab · Self-paced

Ready to move on when: Every response shape maps to a domain result rather than a null crash.

03MODULE 03Conversation and streaming2 lessons · Self-paced
  • Conversation ownership
  • Stream accumulation
  • Lifecycle behavior

Maintain coherent sessions under cancellation and changing screens.

  1. 01Conversation and streamingLesson · Self-paced
  2. 02Practice: Conversation and streamingLab · Self-paced

Ready to move on when: Late chunks cannot update the wrong conversation.

04MODULE 04Structured output and validation2 lessons · Self-paced
  • Schema design
  • Parsing and domain validation
  • Repair policy

Turn model text into data without confusing a schema with truth.

  1. 01Structured output and validationLesson · Self-paced
  2. 02Practice: Structured output and validationLab · Self-paced

Ready to move on when: Typed output is never persisted before domain validation succeeds.

05MODULE 05Function calling and safe execution2 lessons · Self-paced
  • Tool declarations
  • Argument and identity checks
  • Tool result loop

Keep model planning separate from application actions.

  1. 01Function calling and safe executionLesson · Self-paced
  2. 02Practice: Function calling and safe executionLab · Self-paced

Ready to move on when: A model-generated tool request cannot bypass your normal application permissions.

06MODULE 06Evaluating and operating Gemini features2 lessons · Self-paced
  • Model compatibility
  • Quotas and retries
  • Quality and cost

Make prompt changes reviewable and production behavior bounded.

  1. 01Evaluating and operating Gemini featuresLesson · Self-paced
  2. 02Practice: Evaluating and operating Gemini featuresLab · Self-paced

Ready to move on when: You can defend the selected configuration with task-level evidence.

07MODULE 07Capstone and portfolio review1 lessons · Self-paced
  • Keep privileged provider credentials out of the APK
  • Reject unsupported or malformed itinerary data
  • Demonstrate cancellation, tool rejection and a model timeout

Build a travel brief assistant that extracts a typed itinerary and asks for confirmation before saving it.

  1. 01Capstone: Gemini API for AndroidProject · Self-paced

Ready to move on when: Demonstrate every acceptance criterion and explain the tradeoffs without relying on the lesson text.

PROVE YOUR SKILLS

A portfolio you can build, explain, and defend.

  • Keep privileged provider credentials out of the APK
  • Reject unsupported or malformed itinerary data
  • Demonstrate cancellation, tool rejection and a model timeout

Use the final review rubric to identify gaps. Lesson completion tracks study progress; readiness comes from independently demonstrating the work.

Open the portfolio review rubric →