>Hi
>
>Can anyone help me to understand how WebView decided which content it
>can render and which it can't? For example I am inside a webview
>select a link and if the link sends an XML file I want my application
>to handle to data instead of WebView,
>
>Is this possible?
>
>Thanks,
>
>-Amit

install a WebViewClient in your WebView and override 
shouldOverrideUrlLoading(). you can then decide what to do about a 
particular link and return whether the WebView should do anything 
about it or not.

this works most of the time for me. the only problem is that the link 
handler is *not* called when you reload the same URL - and the same 
URL in this instance means the same host and path, regardless of 
parameters. it's logged as an issue.


-- 
jason.software.particle

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to