Android – whether sharing preferences are shared among users

I have some questions, please help me, the following is my question?

>Is the sharing preference data shared among users? > Can we also have the same widget ID in two different users? > I have a widget that any user can use. I get some conflicts when a guest user or any new user switches. Specifically, my widget is resizable to save its state so that it can be inflated accordingly when the phone restarts or some refresh events. These are very effective for administrator users, However, it will behave abnormally when adding guests or switching users

resolvent:

Shared preference data is shared among users. If we define context mode and create sahredpreference to get more details, you can read here for detail and here. For widget ID, I think we can provide the same ID in different users, but here (I'm not sure) should also be a conceptual mode

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>