You mean to call loadUrl(“javascript:xxx”) with Anroid WebView, right? If so, the XWalkView.load also support javascript scheme, did you have a try?
From: Gökhan Gökçe [mailto:[email protected]] Sent: Monday, July 7, 2014 3:46 PM To: Min, Hongbo Cc: [email protected] Subject: Re: [Crosswalk-help] Calling js function from java Hi, I m using crosswalk 7.36 (arm). I tried evaluateJavascript, do you advice any other function? Because in android webview normally i call js directly from loadUrl Thanks 2014-07-07 10:35 GMT+03:00 Min, Hongbo <[email protected]<mailto:[email protected]>>: Hi, I assume you are using evaluateJavaScript provided by Android WebView, right? The evaluateJavaScript API is exposed from Crosswalk 8. Which crosswalk version are you working on? If it is old than Crosswalk 8, I suggest to download the Crosswalk canary build from https://download.01.org/crosswalk/releases/crosswalk/android/canary/.<https://download.01.org/crosswalk/releases/crosswalk/android/canary/> If Crosswalk 8 doesn't still work for you, please file a bug at https://crosswalk-project.org/jira/.<https://crosswalk-project.org/jira/> Thanks. From: Crosswalk-help [mailto:[email protected]<mailto:[email protected]>] On Behalf Of Gökhan Gökçe Sent: Monday, July 7, 2014 2:53 PM To: [email protected]<mailto:[email protected]> Subject: [Crosswalk-help] Calling js function from java I m trying to use crosswalk<https://crosswalk-project.org/> runtime in my android app. I tried this on android 4+. I got some js & html codes and it worked perfect for me. But it is not working like android webview. In the webview i can call javascript functions from java code. But i couldnt find any option in crosswalk. Any idea? Thanks -- Gökhan Gökçe Bilgisayar Mühendisi www.gokhangokce.info<http://www.gokhangokce.info> -- Gökhan Gökçe Bilgisayar Mühendisi www.gokhangokce.info<http://www.gokhangokce.info>
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
