Hi Mark,

I have tried this earlier and I was able to load HTML files with
Images/CSS/javascript specified over there properly.

But this does not work properly when we try to load any HTML file
which has CSS is specified with the "import" keyword. Any how the html
file gets loaded, but the CSS is not being applied properly [which is
specified in html with "import" keyword.]

CSS is specified Like:
<style type="text/css" media="all">@import "Tricycle_files/
aggregator.css";</style>

You try to save "http://www.tricycle.com"; and load it locally with
ContentProvider.

I don't know why it is behaving like that?



Thanks,
AJ

On Sep 18, 2:38 pm, Mark Murphy <[email protected]> wrote:
> rooster 808 wrote:
> > Is it possible for the App to create a new file/asset and write this
> > into the /assets directory.
>
> No. The assets/ are stored inside the signed-and-sealed APK and cannot
> be modified at runtime.
>
> > The reason being, that's the only way I
> > can tell webkit will load a local file/resource.
>
> No, it is not. You can create a ContentProvider and implement openFile()
> to serve whatever content you like to a WebView.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_
> Version 1.1 Available!
--~--~---------~--~----~------------~-------~--~----~
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