Using function plugin I created a function jstest() in constuct 2. Now I want to call this function from android code(the game is embedded in android webView). I tried various combinations as follows but nothing worked.
webView.evaluateJavascript("c2_callFunction(\"jstest\", []);", null);
webView.evaluateJavascript("c2_callFunction(\"jstest\", [])", null);
webView.evaluateJavascript("c2_callFunction('jstest', []);", null);
webView.evaluateJavascript("c2_callFunction('jstest', [])", null);
It seems more of java question rather than C2 but still can any one help me?