Android模拟器SDCard由于某种原因被删除

发布于 2025-01-06 12:06:54 字数 262 浏览 3 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

叫思念不要吵 2025-01-13 12:06:54

使用此代码

Intent i = new Intent(android.provider.Settings.ACTION_MEMORY_CARD_SETTINGS);
startActivity(i);

,然后从菜单挂载 SD卡...

use this code

Intent i = new Intent(android.provider.Settings.ACTION_MEMORY_CARD_SETTINGS);
startActivity(i);

and then mount sdcard from menu...

撕心裂肺的伤痛 2025-01-13 12:06:54

我遇到了这个问题......当我进入 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文