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
polo777 wrote:
Does someone have a solution? That would be great.
Use loadDataWithBaseURL(), even if you have to pass in a fake URL.
--
Mark Murphy (a Commons Guy)
http://commonsware.com
Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml
Re,
Actually, I still have a problem.
When I use this trick, the javascript containing in my page doesn't
work whereas the same page(html/javascript) works when I load it from
the network or from a file:///android_asset/myfile.html.
Anything?
Polo
On Nov 21, 1:06 pm, polo777 [EMAIL PROTECTED]
polo777 wrote:
Re,
Actually, I still have a problem.
When I use this trick, the javascript containing in my page doesn't
work whereas the same page(html/javascript) works when I load it from
the network or from a file:///android_asset/myfile.html.
Anything?
Your simple options are:
1.
Hi Mark,
First thanks a lot for your answers...
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
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
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
7 matches
Mail list logo