android - 从android中的应用程序恢复已删除的Xml文件

标签 android recovery xml

是否可以在 Android IDE 中从应用程序中恢复已删除的 XML 文件?

很遗憾,我从应用中删除了重要文件。

最佳答案

对于 Eclipse:

To restore a deleted Workbench resource with a state from the local history:

  1. In one of the navigation views, select the folder or project into which you want to restore a local history state
  2. From the resource's pop-up menu, select Restore from Local History.... The Restore From Local History dialog opens showing all files that were previously contained in the selected folder or project and all of their sub-folders.
  3. Check the files that you want to restore
  4. If you don't want to restore just the last state of a file you can select any other state of the file from the Local History list on the right hand side of the dialog. The bottom pane of the dialog shows the contents of the state.
  5. If you are done with all files click Restore.

( Source )

对于 Android Studio/IntelliJ/AppCode:

  1. Go to the Project tool window and right-click the project node or just a folder, where the file used to exist
  2. On the context menu, choose Local History, and click Show History on the submenu
  3. The local history view for a project or folder shows you everything that you have done during the last few days. In the Action column of the lower part of the dialog box, select the action you want to roll back. In our case, this is the Deleting action. So doing, the upper part of the dialog box shows the tree view of changed files.
  4. If you want to restore the deleted file only, regardless of the other changes that have been done since then, you can select the file Lost.txt in the tree view and click the Revert button on the upper toolbar. The file will be restored silently.

( Source )

关于android - 从android中的应用程序恢复已删除的Xml文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23198486/

相关文章:

android - 不工作先点击查看

java - 无法在 Android Studio 中解析符号 "R",但编译没有问题

linux - 重新安装linux后如何恢复已删除的文件

android - 从后台恢复后,Flutter GoogleMap 为空白

java - Android/Java 长数学有时会相差一个小小数

postgresql - 如何恢复 PostgreSQL 8.0 数据库

apache-flex - 柔性 : recover from a corrupt local SharedObject

java - 谷歌地图 Android 仅显示白屏

java - 用于冒号分隔标签的 XML 解析器?

java - 根据从 XML 文件中解析信息的 vector 绘制 ListField 并使用 Graphics 绘制屏幕