Hi! For a small project, I am trying to make use of the just released embedded webview in the canary branch. My code is here:
https://github.com/vincentbernat/dashkiosk/blob/feature/crosswalk/android/src/com/deezer/android/dashkiosk/DashboardWebView.java I am left with two problems. 1. I am using a LinearLayout to show a "loading" screen until the webview is ready. I know that the webview is ready when it will call a special JS function (declared as a JavascriptInterface). Unfortunately, when the webview is not visible (because pushed outside of the screen by the loading widget), the webpage doesn't seem to be running at all. I don't even see it in the web inspector. If I make the webview visible from the beginning, no problem. So, is there a way to make the webview "live" without being visible? 2. My main interest in Crosswalk is the ability to have WebGL available. When I load the WebGL sample from my application, it runs for three seconds then seems to be killed by OOM (in dmesg, I see a lot of "send sigkill to XXX (XXX). adj XXX, size XXX"). Is there a way to debug that (I am not really skilled in Android programming). The WebGL sample is loaded through an iframe whose size is 100% and the viewport of the webview is 1280x720. I am running it on a real Nexus 5. Also, I was using this snippet to get JS logs directly in the logs of the application: /* Log Javascript stuff */ this.setWebChromeClient(new WebChromeClient() { @Override public boolean onConsoleMessage(ConsoleMessage cm) { Log.d(TAG, "Javascript log (" + cm.sourceId() + ":" + cm.lineNumber() + "): " + cm.message()); return true; } }); This would be handy to be able to do the same thing with crosswalk (but I should be able to propose a patch for this, I think). -- Keep it simple to make it faster. - The Elements of Programming Style (Kernighan & Plauger) _______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
