是否所有的Andr​​oid设备都内置SD卡? [英] Do ALL android devices have an internal SD card?

查看:131
本文介绍了是否所有的Andr​​oid设备都内置SD卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序第一次运行时,我下载一个pretty的大文件/ SD卡/

我已经知道这会失败,如果用户的手机内置SD卡已满,或者未安装(例如,如果手机连接到PC作为大容量存储设备,或者未从电脑正常断开)。

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

解决方案
  

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

这有Android市场将会有应至少2GB的 Environment.getExternalStorageDirectory任何设备()。这是否是一个SD卡或别​​的东西会因设备而异。

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)

解决方案

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.

这篇关于是否所有的Andr​​oid设备都内置SD卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆