0

I have a webpage displayed in a WebView. I do not have the control of the webpage. The webpage is executing a javascript and when it's resoving a deffered object it loads an URL. What I want is to capture the deffered.resolve() and do something else.

Is there a way to do this through a @JavascriptInterface ?

ftraian
  • 658
  • 1
  • 7
  • 21

1 Answers1

0

A possible solution is capturing the URL loaded by deffered.resolve using WebViewClient.shouldInterceptRequest(). This method is called for ajax requests, too.

ftraian
  • 658
  • 1
  • 7
  • 21