I am trying to use the SharedPreferences user interface SharedPreferences to store application settings in a database (instead of default XML).
Why? I would like to use the convenience of PreferenceActivity to create a user interface, but this application will be used on several devices, so the preferences that the user sets must be saved on all devices.
So, I have an implementation, but I canโt figure out how to associate a particular SharedPreference with PreferenceActivity . I know that uses getSharedPreferences() , but how can I override this? Can I register my SharedPreferences some way? I have not seen anything in the API for this.
Or ... if I'm going to all this wrong, let me know. Thanks.
mkowske
source share