Which Android storage option suits small key-value settings such as a user's theme preference?
Correct answer
A. SharedPreferences
15 views
A. SharedPreferences
15 views
SharedPreferences (and its newer replacement, Jetpack DataStore) stores simple key-value pairs. Room is for structured relational data, and a Content Provider shares data between apps.
Asked in: NTS, Android Interviews
Not sure why the answer is A? Ask here and get an explanation.