简体   繁体   English

所有的android设备都有内置SD卡吗?

[英]Do ALL android devices have an internal SD card?

On the first run of my app, I am downloading a pretty big file to /sdcard/ 在我的应用程序首次运行时,我正在将一个很大的文件下载到/ sdcard /

I already know this can fail if the internal SD card of the user's phone is full or not mounted (eg if the phone is connected to a PC as a mass storage device, or has not been properly disconnected from a PC). 我已经知道,如果用户电话的内部SD卡已满或未安装(例如,电话已作为大容量存储设备连接到PC,或者未与PC正确断开连接),这可能会失败。

But are there any android devices with NO INTERNAL SD CARD ? 但是,有没有没有内置SD卡的android设备吗? (on which my app would definitely be unusable) (我的应用肯定无法使用)

But are there any android devices with NO INTERNAL SD CARD ? 但是,有没有没有内置SD卡的android设备吗? (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() . 具有Android Market的任何设备都将在Environment.getExternalStorageDirectory()处至少拥有2GB的存储空间。 Whether that is an SD card or something else will vary by device. 是SD卡还是其他设备,将因设备而异。

I personally have Samsung Galaxy Tab and it doesn't have internal SD card (shipped with, can be bought separately I guess). 我个人有Samsung Galaxy Tab,并且没有内置SD卡(附带,我想可以单独购买)。

In my program I call Environment.getExternalStorageDirectory and it seems to provide with internal memory path when no SD card is mounted. 在我的程序中,我调用Environment.getExternalStorageDirectory,当未安装SD卡时,它似乎提供了内部存储路径。 So far works, haven't investigated further. 到目前为止,还没有进一步研究。

All Android compatible devices supports external storage. 所有与Android兼容的设备均支持外部存储。 This doesn't necessary have to be a SD card, it could be non-removable internal storage. 不必一定是SD卡,它可以是不可移动的内部存储器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM