如何在Android模拟器中访问文件系统的本地文件? [英] How to access local files of the filesystem in the Android emulator?

查看:481
本文介绍了如何在Android模拟器中访问文件系统的本地文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有一种方法可以在Android模拟器中访问文件系统的本地文件(例如文本文件,网页).

I want to know whether there is a method to access local files (say text files, web pages) of the filesystem in Android emulator.

我正在使用Ubuntu 10.04进行Android开发.

I'm using Ubuntu 10.04 for Android development.

推荐答案

您可以使用SDK工具目录中的adb命令:

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一起使用,则会有一个视图来浏览文件系统( Window-> Show View-> Other ...,然后选择 Android-> File Explorer )

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屋!

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