tags:

views:

180

answers:

3

How to package a static 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.

A: 

bump.

I'm having the same problem using Eclipse.

But it works fine when I run it in cmd "java test.Hello."

Mark
java_list = fopen("test.txt", "r")=NULL???
Mark
A: 

Hi, 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"

Tobias Domhan
A: 

bump charl ength

Mark