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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help