我需要查看我的共享流量值存储的位置

发布于 2025-02-02 23:50:31 字数 36 浏览 1 评论 0原文

在我的项目中,我需要查看共享偏好的位置,在哪里可以看到它。

In my project, I need to see the location of my shared preference where can I see it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

可爱咩 2025-02-09 23:50:31

共享流程存储在应用程序数据文件夹中的XML文件中,即

/data/data/YOUR_PACKAGE_NAME/shared_prefs/YOUR_PREFS_NAME.xml

/data/data/YOUR_PACKAGE_NAME/shared_prefs/YOUR_PACKAGE_NAME_preferences.xml

在Eclipse Project中未存储在运行时添加的shoodlePreferences:eSharedPreferences。

注意:访问/data/data/< package_name>需要超级用户特权

SharedPreferences are stored in an XML file in the app data folder, i.e.

/data/data/YOUR_PACKAGE_NAME/shared_prefs/YOUR_PREFS_NAME.xml

or the default preferences at:

/data/data/YOUR_PACKAGE_NAME/shared_prefs/YOUR_PACKAGE_NAME_preferences.xml

SharedPreferences added during runtime are not stored in the Eclipse project.

Note: Accessing /data/data/<package_name> requires superuser privileges

白首有我共你 2025-02-09 23:50:31

转到Android Studio右下方的设备文件资源管理器。从那里转到数据 - &gt; data-&gt;(您的软件包) - &gt;共享首选项

Go to device File explorer at the right bottom of your android studio. From there go to data-> data->(your package)->shared preferences

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文