What is the most appropriate way to store user settings in Android application?

Technology CommunityCategory: AndroidWhat is the most appropriate way to store user settings in Android application?
VietMX Staff asked 3 years ago

In general SharedPreferences are your best bet for storing preferences, so in general I’d recommend that approach for saving application and user settings.

The only area of concern here is what you’re saving. Passwords are always a tricky thing to store, and I’d be particularly wary of storing them as clear text. The Android architecture is such that your application’s SharedPreferences are sandboxed to prevent other applications from being able to access the values so there’s some security there, but physical access to a phone could potentially allow access to the values.