Open Z1W3 opened 3 years ago
#[link(name = "android")] // add this extern "C" { pub fn AAssetManager_fromJava(env: *mut JNIEnv, assetManager: jobject) -> *mut AAssetManager; }
I need this too, can't instantiate an AssetManager from java instance otherwise. This is essential if you have a Java application in addition to a native lib i.e. not a purely native activity.