What's up with Android's back?
summary
Covers the full migration from API 1 to Android 14 with concrete recipes: onBackPressed deprecated, use AndroidX OnBackPressedDispatcher (Activity 1.6+) or the platform onBackInvokedCallback on API 33+, or flip the manifest flag enableOnBackInvokedCallback for simple apps. Demonstrates Activity 1.8.0 alpha’s back progress/start/cancel callbacks, AndroidX Transitions and material components (bottom sheet, side sheet) wired to predictive back, and working emulator demos plus a sample repo.
AI-written summary · about
chapters (22)
- 0:00Android back navigation intro
- 1:17Early Android back handling
- 2:20onBackPressed API in 1.0
- 3:24Gesture navigation in 10
- 4:51onBackPressed deprecated in 13
- 5:55Predictive back gesture in 13
- 8:41onBackPressedDispatcher overview
- 10:27Adding back callbacks
- 12:34Back press in dialogs & Compose
- 16:25Lifecycle control for back callbacks
- 17:31Migration from old to new APIs
- 19:14onBackPressedDispatcher for compat
- 21:20Platform back handling in 13+
- 23:50Android 14 predictive back
- 24:55Cross-activity transitions in 14
- 26:41Back gesture progress APIs
- 27:44AndroidX transitions integration
- 29:34Material Design predictive back
- 30:37Custom back gesture guidelines
- 31:38Live demo: Android 13 predictive back
- 31:58Live demo: Android 14 predictive back
- 32:43Resources and code samples
related talks
14mBasics for System Back
33mGesture navigation best practices
28mBuilding for the Future of Android
17mBringing Predictive Back Gestures to your App
43mBuilding for the Future of Android
24mUI That Connects an Android App's Inside and Outside
27mA window into transitions
43mOh, the places you’ll go! — Android Navigation: How Does It Work & What’s New
