I'm coding an app that uses configurable profiles for different user preferences: many different users will use the same app on the same device.
The problem is that I can't use Android's PreferenceActivity because it j开发者_开发技巧ust support one user per application.
Is there an easy way to generate the user interface for configuration, or I have to code everything from 0, including the user interface?
Thank you!
many different users will use the same app on the same device
That seems unusual.
The problem is that I can't use Android's PreferenceActivity because it just support one user per application.
You might be able to create your own subclass of PreferenceManager
that uses a different file per person, then return an instance of that in your PreferenceActivity
in getPreferenceManager()
.
精彩评论