I Found the #1 Cause of Freezes in Your app, and Heres the Proof
dev.to·13h·
Discuss: DEV
Flag this post

A lot of people ask me why I hate SharedPreferences, and at my job some people are even arguing with me that SharedPreferences are a good thing and that they don’t lead to any problems whatsoever. But from my six years of development experience and more than 15 projects, I know that SharedPreferences are literally the number one cause of ANRs in many popular apps and third-party frameworks.

You will always have ANRs because of them, no matter what you do (no, edit doesn’t help!). And in this post I will spill expose why you should remove SharedPreferences from your project ASAP.

Problem #1: SharedPreferences are fundamentally flawed and you can’t fix that with any code you write

**The problem isn’t how SharedPreferences are implemented internally - it’s in the paradigm …

Similar Posts

Loading similar posts...