Android WebView: shouldOverrideUrlLoading called when svg or webm are in object tag in HTML -


I am testing a strange webview behavior in my Android app:

When an HTML file In which

  & lt; Object & gt;  

Elements pointing to SVG and WebM files are loaded, webview calls should be override url loading and I think the old URL (getUrl ()) is the current file , The new URL is Svg / webm content file (for each event)

It is not that the content is a MP4 or an image

Object elements are in HTML, when the content is " To jump ", Webvwe are requested to know how to Avoid? What are the other elements, like

   

For example, which can cause problems like this?

It is necessary to capture the body weight and only after removing this phenomenon some variables Is set correctly; While the variable is wrong IOverrideUrl loading will be returned immediately after the call.

To achieve this, the Javascript interface is set to WebWevo with the appropriate method, and the method is called the change by progress with progress when the body ONLOGE event set in HTML via Javascript Injection Should be done is called == 100 or onPageFinished.

This worked for me.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -