I have a native C++ module that loads image files using libjpeg and lodepng. In iOS everything works fine, i can refer to an image like that : ...myAppBundleSrc/myImages/myImage.png
I am porting my code to android. I successfully built my module with ndk. The problem is that i don't know what file path i should pass to my image loading library in C++. I tried "file:///android_asset/myImages/myImage.png" without success.
My import code in c++
#ifdef _ANDROID
#include <sys/types.h>
#include <android/asset_manager.h>
#include <android/asset_manager_jni.h>
#endif
My android.mk
LOCAL_LDLIBS := -llog -landroid -lGLESv2 -L$(LOCAL_PATH)/libraries