Hi,

Finally I created the content provider overriding the openFile method
so that I can use loadUrl() but still a part of the Javascript (of the
page loaded) that worked when it was loading from the web or an asset
file doesn't work here. I got a WebCore error telling me there is a
parsing issue!!! The content is exactly the same. Looks like the
WebKit doesn't work the same whether the file is an asset, page loaded
from Network or a string or a text from a file (ContentProvider
solution).
This problem drives me crazy!

Polo



On Nov 21, 4:56 pm, polo777 <[EMAIL PROTECTED]> wrote:
> I am gonna give a try and let you know. Thanks Mark!
>
> On Nov 21, 4:45 pm, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > polo777 wrote:
> > > After having tried to use "addJavascriptInterface", I start working on
> > > the ContentProvider-based solution that you described.
> > > With this solution can I just create/open/read/delete a file in which
> > > I would store my string (javascript + html) so that I could use
> > > loadUrl or loadDataWithBaseURL properly using the url "content://
> > > blabla.provider"?
>
> > In theory, yes. I haven't tried it myself, though I should be giving
> > that a shot sometime next week, I think. I've seen other posts on these
> > lists that suggest others have it working, though it is not exactly trivial.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
>
> > Android Training on the Ranch! -- Mar 16-20, 
> > 2009http://www.bignerdranch.com/schedule.shtml
>
>
--~--~---------~--~----~------------~-------~--~----~
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