androidengineers.Book a session

PocketCommunity study guide

PocketCommunity study guide

articleSelf-paced

Learning outcome

Identify what the agent generates and what Android owns.

PocketCommunity is a developer-event companion: ask for nearby events, inspect a venue, and prepare with an interactive checklist. The interesting output is not a paragraph describing a screen. Gemini chooses a component tree; the server validates it; AndroidX A2UI turns that description into native Compose components. Follow one request through every boundary before extending the implementation.

Real Gemini-generated UI on a physical Android phone

PocketCommunity event discovery on Android
Gemini-composed event discovery using published DevEarth listings.
Refined preparation checklist with a checked item
A follow-up preserves checked state and labels completion as self-reported.

This is a run–understand–extend course using a completed preview, not a blank-project tutorial. You will configure your own server, inspect source and protocol messages, reproduce the app flow, fix a validator gap with failing tests, then design an independent extension. Expect several focused sessions. The app is a live-agent preview: production hosting, durable conversations and streaming transport are outside its current scope.

Separate the responsibilities

LayerOwnsDoes not prove
GeminiAssistant text and component compositionThat event facts are correct
Companion serverPublished event context, validation, A2UI envelopesThat every valid screen is usable
AndroidX A2UIProtocol parsing, native catalog rendering, bound stateThat an LLM produced a message
App shell and ViewModelNavigation-free conversation, endpoint, jobs, action authorizationThat a checked item verifies registration

A2UI is independent of Gemini credentials. A developer-authored message can exercise a renderer without a key. This app deliberately requires a live agent endpoint at runtime; deterministic messages exist only in instrumentation tests. Missing configuration shows setup. A model error never silently substitutes scripted event cards.

Evidence you can rely on

At this revision, debug/release builds, 2 JVM tests, 3 physical-device UI tests and 10 Node tests passed. Live Gemini event, venue, preparation and checkbox-aware refinement ran on a OnePlus DN2101 with Android 13. These are baseline results, not a guarantee for all model projects or devices.

Request, server validation and native rendering

Request, server validation and native rendering.

Official reference

Practice and checkpoint

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.

Source and next steps

Back to roadmap · Practice this unit in the codelab

YOUR LEARNING JOURNEY

0 of 12 available lessons completed

Progress saved in this browser. No account needed.
PocketCommunity study guide | A2UI on Android with PocketCommunity | Android Engineers