Android development: Connecting a PreferenceFragment to a Database

Firstly, the PreferenceFragment is great. It’s a ready-to-go nice looking ‘View’ (in the MVC context) for displaying settings-like data to users. To use it you simply create an XML file containing the PreferenceScreen description of what the Preferences are. You then create a PreferenceFragment which calls: addPreferencesFromResource(R.xml.your_preferences) However the ‘Model’ and ‘Controller’ aspect has very […]

Continue reading