简体   繁体   English

外部和内部存储如何同时检查

[英]External and internal storage how to check both

I get the difference between the two but is there a way to see the internal storage file? 我得到了两者之间的区别,但是有没有办法查看内部存储文件? Because I want to check if the file is like I want it to be. 因为我想检查文件是否像我想要的那样。

Then I created a external file and when I'm programming in eclipse and I test my app the file is created and I can see it on my phone via a filemanager but when I browse via my windows explorer to the HTC memory the file isn't there. 然后,我创建了一个外部文件,当我在Eclipse中编程时,我测试了我的应用程序,该文件已创建,并且可以通过文件管理器在手机上看到它,但是当我通过Windows资源管理器浏览到HTC内存时,该文件是“在那里。 Is this because I'm working in eclipse and this is debug? 这是因为我在Eclipse中工作,这是调试吗? Or is there a way to check the file on my computer? 还是有办法检查计算机上的文件?

Thanks already 已经谢谢你了

public static String filePath = Environment.getExternalStorageDirectory() + your folder path 公共静态字符串filePath = Environment.getExternalStorageDirectory()+您的文件夹路径

it give a path of your memory storage either it is internal or external it give 它给您的内存存储路径,可以是内部的也可以是外部的

Bhanu Sharma solution works. Bhanu Sharma解决方案有效。 For the external file there is in eclipse a nice way. 对于外部文件,eclipse中有一个不错的方法。 Open the file explorer window in eclipse and then you can click a file and right above there are icons to push and pull the file to your device. 在eclipse中打开文件资源管理器窗口,然后您可以单击一个文件,然后在右上方有图标将文件推入和拖入设备。 ;-) ;-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM