开发者

How to implement profiles in an Android application?

开发者 https://www.devze.com 2022-12-24 23:59 出处:网络
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.

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

精彩评论

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

关注公众号