Android Eclipse DDMS - 如何删除设备上的目录?
使用Eclipse中的DDMS Perspective,可以删除手机上的目录吗?您绝对可以选择并删除文件,但我似乎无法删除任何目录。我想出的唯一方法是在命令提示符下:
C:\>adb shell
$ rmdir /mnt/sdcard/Android/data/mydirectory/
Using the DDMS Perspective in Eclipse, can you delete directories on the phone? You can definitely select and delete files, but I can't seem to delete any directories. The only way I have figured out how to is at the command prompt:
C:\>adb shell
$ rmdir /mnt/sdcard/Android/data/mydirectory/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道 android 插件是否支持您正在寻找的选项。但我可以告诉你,这也取决于设备。例如,在已root的手机上,您可以使用HierarchyViewer,也可以在模拟器上使用,但此工具不适用于未root的设备。
您应该考虑到,也许您无法删除,因为您的手机尚未root。这是针对内部存储的,对于外部存储,您应该考虑您的手机是否以仅充电模式或光盘存储模式与电脑连接。如果您使用仅收费模式连接,则可能无法选择删除文件...
同样,我没有给您正确的答案,但我给了您一些您绝对应该考虑的提示。
I do not know if the android plugin supports the option you are looking for. But I can tell you that it depends on the device also. For example on rooted phones you can use HierarchyViewer and also on the emulator , but this tool will not work with none rooted devices.
You should consider that maybe you are not able to delete because your phone is not rooted. This is for the internal storage, and for external you should consider if your phone is connected with your pc with charge only mode or with disc storage mode. If you connect with charge only mode maybe there will be no-option for deleting files...
Again I do not have you the right answer but I gave you some tips you should definitely consider.