访问共享首选项文件 [英] Accessing Shared Preference file

查看:86
本文介绍了访问共享首选项文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何直接访问或阅读在Android手机中创建的SharedPreferences文件

How could I access or read the SharedPreferences file created in android phone directly?

推荐答案

...阅读文档根据那个?



SharedPreferences [ ^ ]



DataStorage教程 [ ^ ]
...by reading the documentation according to that?

SharedPreferences[^]

DataStorage Tutorial[^]


我认为你不能,我认为数据应该是应用程序的私有。

如果你需要保留数据并让其他人将数据存储起来外部存储或SharedPreferences,并通过Activ访问它们ity。



/ Fredrik
I don''t think you can, I think that data is supposed to be private to an application.
If you need to persist data and let others get to either store it on the External Storage or in SharedPreferences and make them accessible through an Activity.

/Fredrik


这篇关于访问共享首选项文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆