处理不需要 SD 卡的 Android 设备

发布于 2024-09-01 00:38:54 字数 228 浏览 6 评论 0原文

似乎某些 Android 设备(例如 HTC Incredible 和 Archos 5 IT)不需要 SD 卡进行存储。

读取和写入文件到“外部”存储(到目前为止是 SD 卡)的应用程序应该如何以尽可能向后和向前兼容的方式处理这个问题?

编辑:获取有关使用板载内存作为存储的设备的更多报告,例如泛数码小说,其中使用 SD 卡的 IO 操作失败。有什么想法吗?是权限问题吗?

It seems that some Android devices like the HTC Incredible and the Archos 5 IT don't need a SD card for storage.

How should apps that read and write files to "external" storage (so far the SD card) deal with this in the most backward and forward compatible way possible?

Edit: Getting more reports about devices that use onboard memory as storage, like Pandigital Novel, in which IO operations that work with the SD card fail. Any ideas? Is it a permissions problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半寸时光 2024-09-08 00:38:54

使用Environment.getExternalStorageDirectory()。 它适用于 ARCHOS 5 Android 平板电脑。它适用于普通的 Android 设备。而且我还没有确认 Incredible 是否允许 SDK 应用程序写入大型板载闪存区域,因此您可能没有真正的选择。请注意,Verizon 应该随 Incredible 一起提供 2GB SD 卡,以帮助解决此问题。

Use Environment.getExternalStorageDirectory(). It works on the ARCHOS 5 Android tablet. It works on normal Android devices. And I have yet to confirm that the Incredible allows SDK applications to write to the large on-board flash area, so it may be you have no real choice. Note that Verizon is supposed to be shipping 2GB SD cards with the Incredible to help deal with this issue.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文