14

Does anyone else know how to track a sort of webview "onLocationChange"? iOS has something like this for its webview.

PS - I am trying to see if I can use the phonegap childbrowser plugin on android to do facebook auth. I'm giving up and just using a facebook plugin I found that uses part of the FB android SDK, but I'd still like to know what's possible.

tjpaul
  • 343
  • 3
  • 16
Brenden
  • 7,708
  • 11
  • 61
  • 75

1 Answers1

9

If you want to manipulate the URL then override this:

public boolean shouldOverrideUrlLoading (WebView view, String url)

Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView.

[WebViewClient Reference]

Matthias
  • 7,432
  • 6
  • 55
  • 88