1

Can I have random file access to a file bundled in my Android aplication? I don't want to copy the file from apk to the sdcard.

fhucho
  • 33,107
  • 40
  • 127
  • 181

2 Answers2

1

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.

Community
  • 1
  • 1
broot
  • 14,468
  • 2
  • 21
  • 23
0

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

EntangledLoops
  • 1,824
  • 1
  • 20
  • 34