Mark and Kostya,

Thanks for the tips guys.

Mark, I could not find a way to get shouldOverrideUrlLoading() to
return objects to the webpage after intercepting them. Do you know of
one?

If not, I guess the only solution then would be a javascript-based
solution, which could even be used in conjunction with
shouldOverrideUrlLoading(), but I don't like the idea of splitting the
solution amongst both the application and the HTML. I would need a
javascript resource loader within the HTML page as you suggest. I
wonder how the WebView will cope with intense I/O within the HTML page
(changing of images). I suspect that intense activity in javascript
could be a major performance issue.

Kostya, using intents is a great idea - I am currently using the
intent framework to intercept a fake HTTP protocol already from within
the application. However, I don't think I can use that method in this
case since the method I was hoping to implement needs to load
resources within the HTML page using my custom protocol in the WebView
reasonably quickly.



2010/11/8 Kostya Vasilyev <[email protected]>:
> Depending on what you are trying to accomplish in the end, you might be able
> to use Android's built-in support for intent:// scheme.
>
> --
> Kostya Vasilyev -- http://kmansoft.wordpress.com
>
> 07.11.2010 13:25 пользователь "Mark Murphy" <[email protected]>
> написал:
>
> WebView is powered by WebKit. I know of no way to add protocol
> handlers to WebKit via Java. There might be a way to do this via some
> sort of WebKit plugin, but I don't know the first thing about that.
>
> Depending on how the URLs are being used, a better choice may be to
> use WebViewClient and shouldOverrideUrlLoading(), and handle it that
> way. Or, if you have control over the implemented Web pages, consider
> switching from custom URLs to Javascript invoking Java via objects you
> add to the WebView via addJavascriptInterface().
>
> On Sat, Nov 6, 2010 at 9:30 PM, paulb <[email protected]> wrote:
>> G'day guys,
>>
>> I am hoping to...
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.2 Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" ...
>
> --
> 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

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