如何访问Android模拟器文件系统中的本地文件? [英] How to access local files of filesystem in android emulator?
问题描述
我在使用Ubuntu 10.04为Android development.I想知道是否有访问本地文件的方法(比如文本文件,网页)的Android模拟器的文件系统。
I'm using ubuntu 10.04 for android development.I want to know whether there is a method to access local files(say text files,web pages) of the filesystem in android emulator.
推荐答案
您可以使用亚洲开发银行
命令,它进来的SDK工具目录:
You can use the adb
command which comes in the tools dir of the SDK:
adb shell
它会给你一个命令行提示,你可以浏览和访问文件系统。或者你可以提取你想要的文件:
It will give you a command line prompt where you can browse and access the filesystem. Or you can extract the files you want:
adb pull /sdcard/the_file_you_want.txt
另外,如果你使用Eclipse的ADT,有一个视图来浏览文件系统(窗口 - >显示视图>其他的...和选择的 Android->文件浏览器的)
Also, if you use eclipse with the ADT, there's a view to browse the file system (Window->Show View->Other... and choose Android->File Explorer)
这篇关于如何访问Android模拟器文件系统中的本地文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!