android 用户与应用程序 config/preference 文件 -- 我很困惑
android user vs app config/preference files -- I'm confused
The docs talk about app-specific files and others like media files。 Android是多用户环境吧??似乎至少在某些情况下,设备上的多个用户都使用同一个应用程序实例(例如 google 个应用程序)。文档谈论“仅供您的应用程序使用的文件”,即应用程序首选项。 android 如何处理应用程序的用户偏好?大多数应用程序都是单用户的吗?以平板电脑为例,家庭中的每个用户都必须安装自己的应用实例吗?
Android is a multi-user environment, right?
是的。
It seems that in some instances at least, multiple users on a device all use the same instance of the app (google apps for instance)
如果您指的是相同的已安装 APK(或 APK 集),那么是的。
How does android deal with user preferences for an app?
如果您的意思是 SharedPreferences
,它们存储在 internal storage 上。每个用户都有自己的内部存储视图,独立于设备上任何其他注册用户的视图。因此,如果有 1,337 个用户,并且每个用户都使用过该应用程序,则将有 1,337 个 SharedPreferences
个文件,每个用户一个。
In the case of a tablet for instance, does each user in the family have to install their own instance of an app?
没有。但是,根据具体情况,某些用户可能无法访问所有已安装的应用程序(例如,受限配置文件)。
The docs talk about app-specific files and others like media files。 Android是多用户环境吧??似乎至少在某些情况下,设备上的多个用户都使用同一个应用程序实例(例如 google 个应用程序)。文档谈论“仅供您的应用程序使用的文件”,即应用程序首选项。 android 如何处理应用程序的用户偏好?大多数应用程序都是单用户的吗?以平板电脑为例,家庭中的每个用户都必须安装自己的应用实例吗?
Android is a multi-user environment, right?
是的。
It seems that in some instances at least, multiple users on a device all use the same instance of the app (google apps for instance)
如果您指的是相同的已安装 APK(或 APK 集),那么是的。
How does android deal with user preferences for an app?
如果您的意思是 SharedPreferences
,它们存储在 internal storage 上。每个用户都有自己的内部存储视图,独立于设备上任何其他注册用户的视图。因此,如果有 1,337 个用户,并且每个用户都使用过该应用程序,则将有 1,337 个 SharedPreferences
个文件,每个用户一个。
In the case of a tablet for instance, does each user in the family have to install their own instance of an app?
没有。但是,根据具体情况,某些用户可能无法访问所有已安装的应用程序(例如,受限配置文件)。