

The new platform APIs and updates to AndroidX Activity 1.6+ are designed to make your transition from unsupported APIs ( KeyEvent#KEYCODE_BACK and OnBackPressed) to the predictive back gesture as smooth as possible. To help make predictive back gesture helpful and consistent for users, we're moving to an ahead-of-time model for back event handling by adding new APIs and deprecating existing APIs. Update your app to support predictive back gesture To try out the early version of the predictive back gesture available through the developer option, you’ll need to first update your app to support the predictive back gesture, and then enable the developer option. Try out the predictive back gesture in Beta 4 We also encourage you to submit your feedback. Adding support for predictive back gesture is straightforward for most apps, and you can get started today. Read on for details on how to try out the new gesture and support it in your apps.

We’re also working with partners to ensure it’s consistent across devices. We plan to make the UI available to users in a future Android release, and we’d like all apps to be ready. Although the predictive back gesture won’t be visible to users in Android 13, we’re making an early version of the UI available as a developer option for testing starting in Beta 4.
