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
  • 34,062
  • 40
  • 136
  • 186

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
  • 21,588
  • 3
  • 30
  • 35
0

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

EntangledLoops
  • 1,951
  • 1
  • 23
  • 36