检测机器人的WebView URL位置变化 [英] Detect android webview URL location change
问题描述
没有任何人知道如何追踪排序的WebViewonLocationChange的? iOS的有像这样为它的WebView。
Does anyone else know how to track a sort of webview "onLocationChange"? iOS has something like this for its webview.
PS - 我想看看我是否可以使用PhoneGap的childbrowser插件在Android上做Facebook的身份验证。我放弃,只是使用Facebook的插件,我发现,使用FB Android SDK中的一部分,但我仍想知道什么是可能的。
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.
推荐答案
有了这个,你可以在一个新的页面开始加载跟踪:
With this you can track when a new page starts to load:
<一个href="http://developer.android.com/reference/android/webkit/WebViewClient.html#onPageStarted">http://developer.android.com/reference/android/webkit/WebViewClient.html#onPageStarted
这里是如何使用它:
<一个href="http://lexandera.com/2009/01/extracting-html-from-a-webview/">http://lexandera.com/2009/01/extracting-html-from-a-webview/
这篇关于检测机器人的WebView URL位置变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!