禁用Android模拟器的SD卡 [英] Disable sdcard in android emulator

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

问题描述

我只是想知道是否有可能在我的仿真器禁用SD卡。我并不想删除我的SD卡的图像文件,但我希望我的模拟器来作出反应,如果没有连接SD卡。如何执行呢?

I just want to know whether is it possible to disable sdcard in my emulator. I don't want to delete my sdcard image file, but I want my emulator to react as if there is no sdcard connected. How to perform this?

推荐答案

1)结果
您可以重命名文件sdcard.img到whatever.img并重新启动模拟器

1)
You can rename the file sdcard.img to whatever.img and restart emulator

2)结果
您可以卸载仿真器内的SD卡中设置

2)
You can unmount sdcard within emulator in Settings

3)结果
您可以指向模拟器不存在的文件,SD卡图像结果
(<一href=\"http://developer.android.com/guide/developing/tools/emulator.html\">http://developer.android.com/guide/developing/tools/emulator.html >磁盘映像> -sdcard开关)

3)
You can point emulator to non-existing file with sdcard image
( http://developer.android.com/guide/developing/tools/emulator.html > Disk Images > -sdcard switch)

4)结果
你不能从运行仿真结果卸载SD卡
(accroding对这个最佳答案:<一href=\"http://stackoverflow.com/questions/2671069/remounting-the-sd-card-on-android-emulator\">(re)mounting在Android模拟器 SD卡)

5)结果
在虚拟设备的硬件编辑的详细信息(AVD),您可以设置SD卡支持切换到无

5)
In Hardware edit details of Virtual Device (AVD) you can setup "SD Card Support" switch to "no"

这篇关于禁用Android模拟器的SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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