问题
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