ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

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

2019-09-30 04:34:05  阅读:203  来源: 互联网

标签:recovery android 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)

标签:recovery,android,xml
来源: https://codeday.me/bug/20190930/1834913.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有