开发者

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

开发者 https://www.devze.com 2022-12-22 08:29 出处:网络
How to package a s开发者_如何学运维tatic file and then be able to ::fopen it from JNI? I have read about res/raw/blah and R.raw.blah stuff, but when I install app on emulator and do \"adb -e shell\",

How to package a s开发者_如何学运维tatic file and then be able to ::fopen it from JNI?

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


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

0

精彩评论

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

关注公众号