所有 Android 设备都有内置 SD 卡吗?
第一次运行我的应用程序时,我正在将一个相当大的文件下载到 /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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
任何拥有 Android Market 的设备都将在
Environment.getExternalStorageDirectory()
处拥有至少 2GB 的存储空间。无论是 SD 卡还是其他东西,都会因设备而异。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.我个人有三星 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.
所有 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.