Hi,
I'm building an Android application in Unity 3D and I need to use a jar file. I need to call a special method inside that jar file and the main calss extends Activity :
public static void extendWindow(Window w, boolean extend)
Now, I can call any java methods inside android with :
AndroidJavaClass pluginClass = new AndroidJavaClass("com.myplugin.My_Plugin");
GetComponent().text = pluginClass.CallStatic("getMessage");
But how can I create that **Window w** object inside Android activity and send it as a parameter to Android Java?
pluginClass.CallStatic("extendWindow","Window w", true);
This is not working, any suggestions?
↧