Read txt file in res/raw/ within Android NDK
I have a file within my application that I want to have included within the .apk for my android app that is a .txt file. My application is almost entirely written in C through the use of the NDK, using OpenGL as well. I know I can bundle the txt file by placing it in /res/raw/, but is there anyway I can access this within the android NDK?
Asked by: Emma113 | Posted: 25-01-2022
See the native-audio sample in the NDK. This has code that reads from the assets folder.Answered by: Agata377 | Posted: 26-02-2022
Still can't find your answer? Check out these communities...
Android Google Support | Android Community | Android Community (Facebook) | Dev.io Android