androidengineers.Book a session

LEARN WITH A CLEAR DIRECTION

Gemini Chat for Android with PocketChat

Build reliable Gemini conversations with PocketChat: streaming, cancellation, context, Room history, recovery, and a grounded Android Engineers AI guide.

IntermediateSelf-paced11 modules23 available lessons

Your path, one skill at a time.

Learn through the runnable PocketChat app and its source-pinned codelab. Follow 19 core learning units: a study guide, eight lessons with exercises, a capstone, and a self-assessment. Four advanced design units preserve existing learning links and explore future structured-output and tool features. Roadmap completion includes all 23 units; advanced exercises require design evidence, not an invented integration.

Self-paced. Complete each lesson and its exercise, then the capstone, assessment, and advanced design units. Use the codelab to run, understand, extend, and verify the same source.

What you’ll learn

  • Trace a streamed Gemini response from HTTP to Compose state
  • Cancel and retry without duplicating turns or accepting stale output
  • Bound completed conversation context and verify the policy with tests
  • Persist history and explain lifecycle recovery and credential boundaries
  • Evaluate a curated Android Engineers guide without inventing capabilities

THE CURRICULUM

Build your knowledge, step by step.

23 lessons across 11 modules. Open a module to explore its lessons and practical work.

01MODULE 01Start here: PocketChat1 lessons · Self-paced
  • Source baseline
  • Setup
  • Learning evidence

Run the pinned app and distinguish concepts, code changes, and verification evidence.

  1. 01PocketChat study guideLesson · Self-paced

Ready to move on when: Build the pinned project and explain the two verification tracks.

02MODULE 02Gemini, instructions, and context2 lessons · Self-paced
  • What the Gemini API provides
  • Source walkthrough
  • Practical verification

Explain the three request inputs and the limits of the curated directory.

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

Ready to move on when: Explain the three request inputs and the limits of the curated directory.

03MODULE 03State ownership and screen actions2 lessons · Self-paced
  • PocketChat Compose state
  • Source walkthrough
  • Practical verification

Trace Send and preserve a draft through missing credentials and recreation.

  1. 01PocketChat Compose stateLesson · Self-paced
  2. 02Practice: PocketChat Compose stateLab · Self-paced

Ready to move on when: Trace Send and preserve a draft through missing credentials and recreation.

04MODULE 04Configure and send a real request2 lessons · Self-paced
  • Building the first request
  • Source walkthrough
  • Practical verification

Verify one request and separate credential readiness from provider success.

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

Ready to move on when: Verify one request and separate credential readiness from provider success.

05MODULE 05Streaming, cancellation, and retries2 lessons · Self-paced
  • Conversation and streaming
  • Source walkthrough
  • Practical verification

Prove frame parsing, explicit completion, and cancellation propagation.

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

Ready to move on when: Prove frame parsing, explicit completion, and cancellation propagation.

06MODULE 06Bounded conversational memory2 lessons · Self-paced
  • PocketChat context policy
  • Source walkthrough
  • Practical verification

Add a positive completed-pair limit without breaking the character budget.

  1. 01PocketChat context policyLesson · Self-paced
  2. 02Practice: PocketChat context policyLab · Self-paced

Ready to move on when: Add a positive completed-pair limit without breaking the character budget.

07MODULE 07Storage and lifecycle behavior2 lessons · Self-paced
  • PocketChat history and recovery
  • Source walkthrough
  • Practical verification

Verify persisted state and distinguish recreation from process death.

  1. 01PocketChat history and recoveryLesson · Self-paced
  2. 02Practice: PocketChat history and recoveryLab · Self-paced

Ready to move on when: Verify persisted state and distinguish recreation from process death.

08MODULE 08Ground the assistant in a curated directory2 lessons · Self-paced
  • PocketChat Android Engineers guide
  • Source walkthrough
  • Practical verification

Add a reviewed resource and verify recommendation boundaries.

  1. 01PocketChat Android Engineers guideLesson · Self-paced
  2. 02Practice: PocketChat Android Engineers guideLab · Self-paced

Ready to move on when: Add a reviewed resource and verify recommendation boundaries.

09MODULE 09Verify behavior and release boundaries2 lessons · Self-paced
  • Evaluating and operating Gemini features
  • Source walkthrough
  • Practical verification

Produce a reproducible evidence log with honest limitations.

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

Ready to move on when: Produce a reproducible evidence log with honest limitations.

10MODULE 10Capstone and self-assessment2 lessons · Self-paced
  • Response style
  • Persistence
  • Evidence review

Apply the concepts independently and record what you can demonstrate.

  1. 01Capstone: Gemini API for AndroidProject · Self-paced
  2. 02PocketChat final assessmentLab · Self-paced

Ready to move on when: Demonstrate per-conversation style isolation and explain the implementation boundaries.

11MODULE 11Advanced design extensions4 lessons · Self-paced
  • Validated takeaways
  • Approval
  • Idempotent tools

Preserved structured-output and tool lessons: design exercises for future features, not implemented PocketChat capabilities. These four units are included in roadmap completion.

  1. 01Structured output and validationLesson · Self-paced
  2. 02Practice: Structured output and validationLab · Self-paced
  3. 03Function calling and safe executionLesson · Self-paced
  4. 04Practice: Function calling and safe executionLab · Self-paced

Ready to move on when: Produce validation cases and a duplicate-safe execution design without claiming a live integration.

PROVE YOUR SKILLS

A portfolio you can build, explain, and defend.

  • Run the pinned app and demonstrate Stop/Retry and follow-up context
  • Pass the context-pair-limit tests and explain omitted history
  • Verify storage/recreation behavior and disclose unverified live cases
  • Complete the independent capstone and advanced boundary designs

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 →