如何使用文件资源管理器来访问模拟器SD卡的文件? [英] How to access files in Emulator SD Card using File Explorer?

查看:191
本文介绍了如何使用文件资源管理器来访问模拟器SD卡的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写了一个文件myData.txt到模拟器SD卡,我可以使用文件资源管理器中找到它MNT ​​/ SD卡/下载。

有没有一种方法来检查,如果我已经正确地写入文件,而不在我的Andr​​oid程序再次读它?怎么样的图像?我能做些什么来查看写在SD卡中的图片?


解决方案

如果你使用的与ADT 的Eclipse:

在DDMS中,资源管理器选项卡上,有一个工具栏。有左边两个按钮:用盘(从设备拉),并与电话(推装置)箭头

箭头

选择该文件,然后单击从设备拉,将文件保存在你的硬盘。

有关详细信息,请href=\"http://developer.android.com/tool​​s/debugging/ddms.html#using-ddms\" rel=\"nofollow\">官方文档


  

与仿真器或设备的文件系统

工作
  
  

DDMS提供了文件浏览器选项卡,可查看,复制和
  在设备上删除文件。此功能在检查文件有用
  由您的应用程序创建的,或者如果您想要传送的文件
  去往和来自设备


  
  

要与仿真器或设备的文件系统工作:


  
  

      
  • 在设备选项卡,选择您要查看的文件系统仿真器。

  •   
  • 要从设备复制文件,找到文件管理器的文件,然后点击文件拉按钮。

  •   
  • 要的文件复制到设备,单击文件资源管理器选项卡上的文件推按钮。

  •   

I have written a file "myData.txt" to the emulator SD card, and I can find it in mnt/sdcard/download using file explorer.

Is there a way to check if I have written correctly to the file without reading it again in my Android program? How about images? What can I do to view the images written in an SD card?

解决方案

If you're using Eclipse with ADT:

In DDMS, on the "File Explorer" tab, there is a toolbar. There are 2 buttons on the left: arrow with disk (pull from device), and arrow with phone (push to device).

Select the file and then click "pull from device" to save the file on your HD.

For more information, check the official documentation

Working with an emulator or device's file system

DDMS provides a File Explorer tab that allows you to view, copy, and delete files on the device. This feature is useful in examining files that are created by your application or if you want to transfer files to and from the device.

To work with an emulator or device's file system:

  • In the Devices tab, select the emulator that you want to view the file system for.
  • To copy a file from the device, locate the file in the File Explorer and click the Pull file button.
  • To copy a file to the device, click the Push file button on the File Explorer tab.

这篇关于如何使用文件资源管理器来访问模拟器SD卡的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆