I saved some files in the resource folder of the Android application.
Now I compile this application and get apk. [when I extract that apk my files are in the resource folder]
Now I install apk on my mobile device
and that the application has some code in programming with the JNI interface.
Now my fopen() call in c-programming for this file fails.
fopen("myfile","r");
I know that when installing the android copy apk archives file to /data/data/com.packagename/something
So does anyone know this way, so I can give it in fopen()
or is there any other way to open this file in C programming.
If I store these files in the sdcard folder and gain access as fopen("/sdcard/myfile","r"); then it works with the file. But I want to save these files only in the resource folder
java c android android-assets
Jeegar patel
source share