简体   繁体   English

检测android webview URL位置更改

[英]Detect android webview URL location change

Does anyone else know how to track a sort of webview "onLocationChange"? 有没有其他人知道如何跟踪某种webview“onLocationChange”? iOS has something like this for its webview. iOS的webview就是这样的。

PS - I am trying to see if I can use the phonegap childbrowser plugin on android to do facebook auth. PS - 我试图看看我是否可以使用android上的phonegap childbrowser插件来做facebook认证。 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. 我放弃了,只是使用了一个facebook插件,我发现它使用了FB android SDK的一部分,但我仍然想知道什么是可能的。

If you want to manipulate the URL then override this: 如果您想操纵URL,请覆盖此:

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. 当新Web将要加载到当前WebView中时,为主机应用程序提供接管控件的机会。

[ WebViewClient Reference ] [ WebViewClient参考 ]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM