You can store the images locally in your /data/data/<package name>/
directory or [preferred] an sd card directory. I believe WebView has
security restrictions on loading file:/// images and files from an
html page if the originated and loaded directly from the web. But if
you download the html file first and then load it using something like
mWebView.loadUrl("file://" + pathToHTML) it should work fine.
See my project for some examples on this where I load some files from
the assets directory and others from the sd card.
http://code.google.com/p/retain-android/
-ryan
On Thu, Dec 9, 2010 at 9:44 PM, ankur <[email protected]> wrote:
> Hi,
>
> I am developing an app in android using WebView. My HTML page is
> coming from the server. The page contains a lot oh high resolution
> images, is there a way to store and reference those images from the
> assets folder, or reference local images. That will help me increase
> the performance. I would want to keep the HTML on the server and not
> make it local.
>
> Thanks,
> Ankur
>
> --
> 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