Do ALL android devices have an internal SD card?

独自空忆成欢 提交于 2019-11-27 13:09:09

问题


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)


回答1:


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.




回答2:


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.




回答3:


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



来源:https://stackoverflow.com/questions/4118436/do-all-android-devices-have-an-internal-sd-card

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!