开发者

Dealing with Android devices that don't need a SD card

开发者 https://www.devze.com 2022-12-29 16:28 出处:网络
It seems that some Android devices like the HTC Incredible and the Archos 5 IT don\'t need a SD card for storage.

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 "externa开发者_开发问答l" 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号