Member-only story
Learning Android Development
The onBackPressed Is Now Deprecated in Android 13 and Might Need Major Changes in Existing Apps
Migrate to Android 13's “Predictive Back” Before It’s Too Late
Other than Push Notification Permission, one of the most prominent features introduced in Android 13 is the Predictive Back feature. It is not a feature that is enabled by default, but it will be the future direction of Android beginning Android 13.
Google has warned
If we do have customized back behavior of our App, by overriding the Activitity’s onBackPressed
, then it is important to take note of this change, given upgrading it to the latest behavior does require quite a bit of a paradigm shift in how we customize Back in Android, which could result in quite a bit of code change.
So if you do have a big legacy app that has sophisticated customized onBackPressed
, it is important to get to work on this migration sooner rather than later.