Hi

Is there a way to override URLs of any of the resources fetched by the
WebKit?

I know about the
"android.webkit.WebViewClient.shouldOverrideUrlLoading(WebView,
String)", but this method is only called if the loading request is
triggered by a user action, like click on a link for example.

Is there anything which will allow me to overwrite on the fly URLs of
any of the resources referred from the page? I would like to replace
URLs of resources like CSS, images, scripts - effectively any
resources which WebKit needs to render the page.

What I want to achieve is to be able to replace on the fly addresses
like:

http://domain-requested-by-the-user.com
http://domain-requested-by-the-user.com/script.js
http://domain-requested-by-the-user.com/style.css

with something like:

http://MY_DOMAIN.com/?q=domain-requested-by-the-user.com
http://MY_DOMAIN.com/?q=domain-requested-by-the-user.com/script.js
http://MY_DOMAIN.com/?q=domain-requested-by-the-user.com/style.css


Thanks!

-- 
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