I'm working on a live wallpaper that is configured using a preferences screen. I use shared preferences to store things like color, speed and movement of the wallpaper. As I've got a lot of settings, I'd like users to be able to:
- save all the current preferences under a profile, where the profile is assign a name by the user.
- the user can then select a profile by name from a list and have all their settings restored.
- the user can also delete profiles.
Can anyone recommend a nice way of doing this?
One idea I had was to save all the current preferences to an XML file and selecting a profile would just load the file and set the shared preferences based on this. However, if I had 20 or so profiles, I would need to inspect all the files to produce a list of profile names (as I'd have to store the profile name in each file) which seem inefficient.