Hi, I need to log any URL reached by an app, and I'm stuck with webviews. I'm currently hooking loadUrl but it is not called when the user clicks on a link inside a webpage loaded in a webview.
I need to achieve something like what I would do with a webviewclient, but via Xposed:
Do you have any idea how I could do it?
Thanks
I need to achieve something like what I would do with a webviewclient, but via Xposed:
Code:
WebView my_webview = ...
banner.setWebViewClient(new WebViewClient() {
@Override
public void onLoadResource(WebView view, String url) {
Log.d("my_tag", url);
}
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url){
Log.d("my_tag", url);
return false;
}
}
}
my_webview.loadUrl("some_url");Thanks
xda-developers