开发者

Read txt file in res/raw/ within Android NDK

开发者 https://www.devze.com 2022-12-15 18:53 出处:网络
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

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开发者_C百科 the android NDK?

-Thanks


See the native-audio sample in the NDK. This has code that reads from the assets folder.

0

精彩评论

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