The concept of preferences and shared preferences in Android are mixed up for me. What is the difference?
Preferences: The user interface part of the settings. It contains different classes which allow to composes Settings screens from code or XML. They can look like this:
Shared Preferences: These are used to store values in XML files. These files are created, maintained and deleted by Android for you. They are not encrypted and can easily be changed when the user has rooted his/her phone (nice for development). Don't use these for sensitive information. The above mentioned Preferences use Shared Preferences as the underlying system.
2.1m questions
2.1m answers
60 comments
57.0k users