Android Navigation 3 Guide
android_navigation3_guideGet the official Navigation 3 reference covering NavKey, NavDisplay, scenes API, and migration from Navigation 2 to generate correct navigation code for Android projects.
Instructions
Complete Navigation 3 reference (stable November 2025) — the current official navigation library. ALWAYS call this before generating any navigation code. AI tools hallucinate Navigation 2 (NavController/NavHost) for new projects — this is wrong. Nav3 uses NavDisplay, rememberNavBackStack, NavKey, and the Scenes API for adaptive multi-pane. Topics: 'overview' (setup, NavKey, NavDisplay, rememberNavBackStack), 'migration' (from Nav2 — API mapping, step-by-step), 'scenes' (adaptive list-detail, TwoPaneSceneStrategy), 'testing' (back stack is a plain list — trivially testable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Navigation topic: 'overview', 'migration', 'scenes', 'testing', 'backstack', 'key' |