写在Android内部SD卡 [英] Writing to internal SD card on Android

查看:107
本文介绍了写在Android内部SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法访问有内置闪存,内置SD卡和外置SD卡的Andr​​oid设备内置的SD卡?

Is there any way of accessing the internal SD card on Android devices that have internal flash, internal SD and external SD cards?

推荐答案

在Android 2.2及previous,只有一个外部存储( Environment.getExternalStorageDirectory())。哪里该点的定义是由设备制造商。兼容性定义文件(CDD)仅仅是强制要求,这至少是2GB,IIRC。它甚至不要求为外部存储是可移动的。

In Android 2.2 and previous, there is only one "external storage" (Environment.getExternalStorageDirectory()). The definition of where this points is up to the device manufacturer. The Compatibility Definition Document (CDD) merely mandates that it be at least 2GB, IIRC. It is not even required for "external storage" to be removable.

目前时间,还没有标准的API来获得对其他分区或卡。设备制造商可能会记录如何访问这些 - 你必须看看他们是否有在各自的开发点什么

At this time, there are no standard APIs to get to other partitions or cards. A device manufacturer might document how to access these -- you would have to see if they have anything on their respective developer sites.

请记住,在一些这些设备的,其他分区或卡可能无法读取或写入经常SDK应用程序。

Bear in mind that on some of these devices, other partitions or cards may not be readable or writable from regular SDK applications.

这篇关于写在Android内部SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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