I achieved 0% ANR in my Android app. Spilling beans on how I did it - part 1
nek12.dev·8h·
Discuss: r/programming
Flag this post

After a year of effort, I finally achieved 0% ANR in Respawn. Here’s a complete guide on how I did it.

Let’s start with 12 tips you need to address first, and in the next post I’ll talk about three hidden sources of ANR that my colleagues still don’t believe exist.

1. Add event logging to Crashlytics

Crashlytics allows you to record any logs in a separate field to see what the user was doing before the ANR. Libraries like FlowMVI let you do this automatically. Without this, you won’t understand what led to the ANR, because their stack traces are absolutely useless.

Especially encrypted ones. They are the #1 cause of ANRs. Use DataStore with Kotlin Serialization instead. I’ll explain why I hate prefs so much in a separate …

Similar Posts

Loading similar posts...