- Home /
 
               Question by 
               s3asfour · Apr 12, 2018 at 08:37 AM · 
                androidnative pluginjni  
              
 
              Passing AndroidJavaObject to C++ method using JNI
I have a precompiled native library that accepts a jobject parameter, which is my applications Android Context. I am correctly getting an instance to my Android Context as an AndroidJavaObject in my unity application. When I call my native library and pass the context, it expects a jobject parameter, so I assumed that i should use getRawObject() method of AndroidJavaObject, but that did not work. Passing the context as AndroidJavaObject also causes an exception
I am really stuck on this. Anyone knows how I can pass an AndroidJavaObject to a native method? How can i marshal an AndroidJavaObject into a jobject so that JNI can understand it?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                