Android P Crashes Non-Responsive Apps Automatically, Without Telling You

Android P Crashes Non-Responsive Apps Automatically, Without Telling You

6 years ago
Anonymous $CLwNLde341

https://wccftech.com/android-p-crashes-non-responsive-apps-automatically-without-telling-you/

Android P is a treasure trove when it comes to major and minor QoL updates. The yet-to-be-named version of Android brings a healthy mix of security features and improved aesthetics. Very often, when an app goes belly up on you, Android sends a notification stating that the app is not responding, would you like to wait for it to respond or kill it. As of Android P, the application will crash without any notification to the user.

It’s not necessarily a benefit to users, but it forces developers to pay particular attention to the underlying problems that caused the crash and make sure that the issue is resolved. Android’s recent limitations on background services mean transitioning to a service is probably not a great idea here. It’s a bit of a catch-22 for developers as they are discouraged from running anything in the foreground thread. In the source video linked below, Google discusses potential solutions to avoid this problem including the AsyncTask API. You should take a look at it if you’re interested in learning more about tackling this problem.