I want to find out when a user clicks an internal link in a url currently opened 开发者_开发问答in webview. How can I do that?
Thanks, Farha
Try setting WebViewClient
for the WebView
and the onPageStarted()
method will be called when the page loading is started.
Edit: To be more clear, this may be a sample code:
WebView wview = (WebView) findViewById(R.id.webView1);
WebViewClient wvClient = new WebViewClient();
wview.setWebViewClient(wvClient);
wvClient.onPageStarted(wview, wview.getUrl(), null);
精彩评论