所有 Android 设备都有内置 SD 卡吗?

发布于 2024-10-01 17:37:13 字数 193 浏览 2 评论 0原文

第一次运行我的应用程序时,我正在将一个相当大的文件下载到 /sdcard/

我已经知道,如果用户手机的内部 SD 卡已满或未安装(例如,如果手机连接到 PC),这可能会失败大容量存储设备,或未与 PC 正确断开连接)。

但是有没有没有内置 SD 卡的 Android 设备? (我的应用程序肯定无法使用)

On the first run of my app, I am downloading a pretty big file to /sdcard/

I already know this can fail if the internal SD card of the user's phone is full or not mounted (e.g. if the phone is connected to a PC as a mass storage device, or has not been properly disconnected from a PC).

But are there any android devices with NO INTERNAL SD CARD ? (on which my app would definitely be unusable)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

萌辣 2024-10-08 17:37:13

但是有没有没有内置 SD 卡的 Android 设备? (我的应用程序肯定无法使用)

任何拥有 Android Market 的设备都将在 Environment.getExternalStorageDirectory() 处拥有至少 2GB 的存储空间。无论是 SD 卡还是其他东西,都会因设备而异。

But are there any android devices with NO INTERNAL SD CARD ? (on which my app would definitely be unusable)

Any device that has the Android Market will have at least 2GB of storage at Environment.getExternalStorageDirectory(). Whether that is an SD card or something else will vary by device.

欢烬 2024-10-08 17:37:13

我个人有三星 Galaxy Tab,它没有内置 SD 卡(附带,我猜可以单独购买)。

在我的程序中,我调用Environment.getExternalStorageDirectory,它似乎在未安装SD卡时提供内部内存路径。目前有效,尚未进一步研究。

I personally have Samsung Galaxy Tab and it doesn't have internal SD card (shipped with, can be bought separately I guess).

In my program I call Environment.getExternalStorageDirectory and it seems to provide with internal memory path when no SD card is mounted. So far works, haven't investigated further.

云归处 2024-10-08 17:37:13

所有 Android 兼容设备都支持外部存储。这不一定是 SD 卡,它可以是不可移动的内部存储。

All Android compatible devices supports external storage. This doesn't necessary have to be a SD card, it could be non-removable internal storage.

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