[android-developers] How to have a dynamically generated URL in a WebView start a new activity?
I have an Activity with a WebView, which is loaded from a HTML file
under assets. I am implementing a custom WebViewClient to intercept
certain URLs for processing within the host app; all other URLs should
spawn a new browser activity. I have this working for any explicit URL
in the HTML file. What isn't working is when the URL is composed
dynamically with Javascript inside the HTML file. When one clicks on
that URL, it is treated as another resource to be loaded inside the
webview, not as a user action that I can detect via the custom
WebViewClient.shouldOverrideUrlLoading() method. How can I get the
Webkit to treat this as a user action?
Code posted at stackoverflow:
http://stackoverflow.com/q/4514714/245310
Thanks for any help you can provide
...bjc
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home