❦ 30 avril 2014 07:55 GMT, "Zhu, Yongsheng" <[email protected]> :

> Crosswalk currently uses SurfaceView to render web pages. Once SurfaceView's 
> invisible
> and covered by another view, Android won't create the surface target for it. 
> so nothing will happen then.
>
> For the solution suggested by Guangzhen, a dialog belongs to a new window 
> which is
> different from the window which SurfaceView belongs to. So it can work well.
> You might have a try with this solution.

OK, I have used a dialog instead. This is not an ideal solution for me
but this works, so far, so good.

I have worked around the inability to intercept javascript log messages
by providing a custom function through JS interface.

Now, the problem that I have is that the webview is using dialog boxes
to display errors. For example, when there is a connection error, I have
"The server refused the connection" error box. I would like to avoid
that. Is it possible?

My current code is here:
 
https://github.com/vincentbernat/dashkiosk/blob/feature/crosswalk/android/src/com/deezer/android/dashkiosk/DashboardWebView.java
-- 
# Basic IBM dingbats, some of which will never have a purpose clear
# to mankind
        2.4.0 linux/drivers/char/cp437.uni
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to