androidengineers.Book a session

LEARN WITH A CLEAR DIRECTION

A2UI on Android with PocketCommunity

Learn agent-generated native Compose UI through a real Gemini event companion: catalogs, surfaces, bindings, action feedback, validation and device evaluation.

IntermediateSelf-paced · 12 units12 modules12 available lessons2 practical labs · 1 capstone

Your path, one skill at a time.

Follow one source-pinned app from private Gemini server setup to native UI rendering and checkbox-aware follow-ups. Read the protocol and architecture, implement a red-to-green validator improvement, evaluate real responses, and finish with an independent state-identity capstone. This is a complete learning path for a verified live-agent preview, not a production hosting course.

Work through four stages over several focused sessions. Time varies with toolchain downloads, model access and prior Android experience.

What you’ll learn

  • Run the pinned app with a server-only Gemini key and a physical-phone connection
  • Explain the difference between model composition, A2UI messages and native rendering
  • Trace an action and bound checkbox state through an agent follow-up
  • Implement and test a validator policy without relying on prompt instructions
  • Evaluate facts, failure recovery and mobile usability separately from compilation

THE CURRICULUM

Everything you’ll learn, in order.

10 lessons and 2 labs across 12 modules, in 4 stages. Open a module to see its lessons.

Stage 01 · Units 1–3

Run and understand

Reproduce the live baseline and read surface messages

You’ll have: Build log, connection evidence and component graph

01PocketCommunity study guide1 lesson

Identify what the agent generates and what Android owns.

  • PocketCommunity study guide
  • Source walkthrough
  • Practical verification
  1. LessonPocketCommunity study guide

Ready to move on when Explain why a screenshot alone cannot prove inference. Your answer should distinguish model calls, server wrapping, real native rendering and test fixtures. Create a learning log recording the commit, device, model name, checks and unresolved limitations. Do not record your API key.

02Reproduce the live baseline1 lesson

Clone the exact source, configure the private server and connect a phone.

  • Reproduce the live baseline
  • Source walkthrough
  • Practical verification
  1. LessonReproduce the live baseline

Ready to move on when Ask for Android events in Bengaluru, request a venue, and then a checklist. Save the build result and a screenshot without credentials. Stop the server and send another request: the app must show a retryable error rather than a new event card. Restart the server and retry. Record actual results; a working /health response is insufficient.

03Surfaces components and data1 lesson

Read A2UI messages as a component graph and a separate data model.

  • Surfaces components and data
  • Source walkthrough
  • Practical verification
  1. LessonSurfaces components and data

Ready to move on when Draw the four-node graph and predict the result of replacing pack.value.path with /missing. Then explain the difference between an absent bound value and a missing child ID. Verify that the baseline server initializes accepted checkbox paths and rejects missing child references.

Stage 02 · Units 4–7

Connect

Trace catalogs, agent context, ownership and checkbox feedback

You’ll have: Real action trace and preserved checkbox state

04Catalogs and native rendering1 lesson

Understand the contract between allowed JSON components and Compose.

  • Catalogs and native rendering
  • Source walkthrough
  • Practical verification
  1. LessonCatalogs and native rendering

Ready to move on when Identify two changes that require app code and two that Gemini can choose within the existing contract. Expected: a new native media renderer and local styling require app code; a different heading and a permitted Card/Column composition can come from the model. Inspect a generated screen at large font size and record one UX risk.

05Ground the Gemini agent1 lesson

Separate trusted instructions, public event data and provider credentials.

  • Ground the Gemini agent
  • Source walkthrough
  • Practical verification
  1. LessonGround the Gemini agent

Ready to move on when Trace where the Gemini key enters an HTTP header and show that it never appears in AgentRequest. Ask for an unsupported action such as buying a ticket: the app must not claim a purchase. Compare event title, date, venue and sponsored label against the feed; record mismatches instead of treating protocol validity as factual accuracy.

06ViewModel and request ownership1 lesson

Follow state, concurrency and lifecycle boundaries through the Android client.

  • ViewModel and request ownership
  • Source walkthrough
  • Practical verification
  1. LessonViewModel and request ownership

Ready to move on when Trace two quick Send taps and a New conversation action while the network is slow. Explain which guards prevent duplicate requests and stale appends. Propose a repository change that connects coroutine cancellation to OkHttp Call.cancel(), but keep it separate from the tested baseline unless you implement and verify it.

07Actions and checkbox feedback1 lesson

Send native interactions back to the agent without inventing side effects.

  • Actions and checkbox feedback
  • Source walkthrough
  • Practical verification
  1. LessonActions and checkbox feedback

Ready to move on when Check one item, press Update my plan and inspect the new surface: both progress text and the checkbox must reflect completion. Reorder a fixture checklist with the same labels and verify preservation. Rename the label and predict false. Explain why stable domain item IDs would be a stronger production identity than label matching.

Stage 03 · Units 8–10

Extend

Validate generated UI and prove a policy change with tests

You’ll have: Red/green tests and failure-recovery log

08Validate generated UI1 lesson

Treat model output as untrusted structure before it reaches native rendering.

  • Validate generated UI
  • Source walkthrough
  • Practical verification
  1. LessonValidate generated UI

Ready to move on when Read the 10 server tests and classify each as structural, action or state validation. Construct a missing-child example and a fabricated-event action; both should throw. Then create two different checkbox IDs bound to /ready0 and explain why the baseline currently accepts them.

09Extend the validator with tests0 lessons · 1 lab

Implement a real red-to-green policy change for independent checklist items.

  • Extend the validator with tests
  • Source walkthrough
  • Practical verification
  1. LabExtend the validator with tests

Ready to move on when Keep the failing output, implementation diff and passing output in your learning log. Add a third test calling validateSurface twice with /ready0 to prove the set is scoped per request. Explain why changing component IDs would not fix shared binding state.

10Errors retry and observability1 lesson

Diagnose a failed request without hiding it behind a fake result.

  • Errors retry and observability
  • Source walkthrough
  • Practical verification
  1. LessonErrors retry and observability

Ready to move on when Run two failure drills and one recovery on your own debug build. Record the exact error and whether the composer becomes usable. Distinguish a repository failure test from a live provider failure: they exercise different boundaries and should be reported separately.

Stage 04 · Units 11–12

Evaluate

Assess live quality and build an independent extension

You’ll have: Evaluation matrix, capstone diff and scored assessment

11Evaluate the end to end flow0 lessons · 1 lab

Collect evidence for software behavior, generated facts and mobile usability.

  • Evaluate the end to end flow
  • Source walkthrough
  • Practical verification
  1. LabEvaluate the end to end flow

Ready to move on when Produce a small evidence report with separate columns for automated tests, live inference and UX. Block release if the app invents registration success, leaks a key, silently uses fixtures or routes an action to the wrong event. Record remaining alpha SDK and production limitations even when the baseline flow passes.

12PocketCommunity final assessment1 lesson

Demonstrate understanding with an independent extension and scored evidence.

  • PocketCommunity final assessment
  • Source walkthrough
  • Practical verification
  1. LessonPocketCommunity final assessment

Ready to move on when Submit your source diff, red/green test logs, device/model evidence and short evaluation report. Explain one remaining limitation you would prioritize next and the test that would demonstrate its improvement.

PROVE YOUR SKILLS

A portfolio you can build, explain, and defend.

  • Successful live event, venue and checklist refinement on your device
  • Failing and passing evidence for the duplicate-binding policy exercise
  • Independent stable-item-identity capstone with tests
  • At least 16/20 on the evidence-based final assessment with no unmet critical checks

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 →