Android模拟器SDCard由于某种原因被删除
我在 AVD 中创建了一个 3.2(使用 Google API)设备。 但是,我最近似乎无法使用 SDCard,使用时:
Environment.getExternalStorageState();
我收到“已删除”。
如何重新安装/卸载 SDCard? (我尝试过创建新设备,并多次重新启动设备)。
如果重要的话,我正在使用 Eclipse 2010 开发 Windows 7。
谢谢, 加尔
I've created in the AVD a 3.2 (With Google APIs) device.
However, I lately can't seem to be able to use the SDCard, when using:
Environment.getExternalStorageState();
I receive "removed".
How can I remount / unremove the SDCard?
(I've tried creating new devices, and restarting the device many times).
I'm working on Windows 7 with Eclipse 2010, if it matters.
Thanks,
Gal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用此代码
,然后从菜单挂载 SD卡...
use this code
and then mount sdcard from menu...
我遇到了这个问题......当我进入 AVD / Android 虚拟设备管理器并更改设备的 SD 卡设置时,问题得到解决。我使用了“创建新图像”按钮,我想它会创建一个保存 SD 卡内容的新文件。
I was running into this with.... The problem was fixed when I went into AVD / Android Virtual Device Manager and changed the SD card settings for the device. I used the "create new image" button which I suppose creates a new file where the SD card contents are saved.