编辑从DDMS共享preferences [英] Edit shared preferences from DDMS
问题描述
我想从DDMS编辑共享preferences值,如果我双击它doen't保存修改的文件。 难道我做错事或者有特殊的插件是什么?
I want to edit shared preferences values from DDMS, if I double click the file it doen't saves the changes. Do I do something wrong or there is special plugin for that?
推荐答案
首先,你应该确保你的应用程序是不是在此之前运行。
First, you should probably make sure your app isn't running before doing this.
您必须使用文件资源管理器选项。导航到
You have to use the File Explorer option. Navigate to
数据 - > com.yourpackage - > shared_ preF
data -> com.yourpackage -> shared_pref
点击XML并在右上角点击拉
。
Click the xml and at the top right click pull
.
编辑XML您的计算机上。
Edit the xml on your computer.
在您完成后,点击推
(也右上)。
Once you're done, click push
(also top right).
如果您按下同一个文件到同一个设备到同一目录,下一次你启动应用程序,你应该看到你更新后的值。
If you pushed the same file to the same device to the same directory, the next time you launch the app, you should see your updated values.
这篇关于编辑从DDMS共享preferences的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!