Edit shared preferences from DDMS(从 DDMS 编辑共享首选项)
问题描述
我想从 DDMS 编辑共享首选项值,如果我双击该文件,它不会保存更改.我做错了什么还是有特殊的插件?
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并在右上角点击pull
.
Click the xml and at the top right click pull
.
在您的计算机上编辑 xml.
Edit the xml on your computer.
完成后,点击push
(也是右上角).
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 编辑共享首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:从 DDMS 编辑共享首选项


- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01