Track clicks in webview Android -
I have been facing a serious problem since the week! I want to track all the clicks taken on the Android webview. I know, the solution is implementing WebViewClient, but does not track clicks in the frame!
Example -
When you open a website within Google Translate, click the track in the webviewclient translated page!
The second, even when using Android 3.0, when I open google.com, I think that Google shows up immediately, and I can track that URL I'm helpless!
If you can help me on this, I would be very grateful.
Thanks Neithin
If this is your own web content, Javascript should be tracked in.
If this is not your web content, then it is possible that you have some general-javascript javascript for it and it's loadUrl ("javascript: ...") and
AddJavascriptInterface () , but I do not know the details, as I am a low-level JS + DOM expert.
WebViewClient does not handle all the scenarios itself, as you note, and this is the only pure Java solution I know.
Comments
Post a Comment