在 Android 上写入内部 SD 卡
有没有办法在具有内置闪存、内置 SD 和外置 SD 卡的 Android 设备上访问内置 SD 卡?
Is there any way of accessing the internal SD card on Android devices that have internal flash, internal SD and external SD cards?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Android 2.2 及更早版本中,只有一个“外部存储”(
Environment.getExternalStorageDirectory()
)。该点的定义由设备制造商决定。兼容性定义文档 (CDD) 仅要求其至少为 2GB、IIRC。甚至不需要“外部存储”是可移动的。目前,还没有标准 API 可以访问其他分区或卡。设备制造商可能会记录如何访问这些内容 - 您必须查看他们各自的开发人员网站上是否有任何内容。
请记住,在其中一些设备上,其他分区或卡可能无法从常规 SDK 应用程序中读取或写入。
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.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.
Bear in mind that on some of these devices, other partitions or cards may not be readable or writable from regular SDK applications.
您的存储卡/SD 卡不存在问题。默认手机设置中有启用非写入设置。
找到位置后,进行编码:
并在编码的另一部分进行更改:
Problem is not there in your memory card/sd card. There is non-writing setting enable in default mobile setting.
After the location been located, make the coding as:
and on the other part of the coding make changes as: