开发者

Random access to file bundled with Android apk

开发者 https://www.devze.com 2023-01-16 05:07 出处:网络
Can I have random file access to a f开发者_高级运维ile bundled in my Android aplication? I don\'t want to copy the file from apk to the sdcard.No, you can\'t: How to get a path to resources? . If you

Can I have random file access to a f开发者_高级运维ile bundled in my Android aplication? I don't want to copy the file from apk to the sdcard.


No, you can't: How to get a path to resources? . If you don't want to copy a file to sdcard, you could read it fully to a memory buffer and work with this buffer.


This response is correct, but there is a workaround: RandomAccessFile in Android raw resource file

0

精彩评论

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