Quantcast
Channel: Questions in topic: "native plugin"
Viewing all articles
Browse latest Browse all 376

How can I access Native Android Classes with parameters?

$
0
0
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?

Viewing all articles
Browse latest Browse all 376

Trending Articles