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