开发者

How to implement profiles in an Android application?

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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜