Android How to pack a file and then: fopen it from JNI?

How to pack a static file and then be able to: fopen it from JNI?

I read about res / raw / blah and R.raw.blah files, but when I install the application on the emulator and do "adb -e shell", cd / data / data / my_app /, ls, the file is not there.

+3
source share
1 answer

I would like to do the same. The only thing I could think of: copying the file to the SD card and reading it from there "/ sdcard / somefolder / somefile"

+2
source

Source: https://habr.com/ru/post/1735385/


All Articles