I'm a trying to do the following thing, but can't seem to find any
resources on how to do this exact thing or if it's even possible....
I want to be able to create an app that uses WebView to request a url
from an external web application which returns html and css that
references images that are assets within the actual application. The
idea is basically to speed up everything so that images never have to
be downloaded.
Here is a simplified example:
Server HTML:
<html>
<head>
<style>
#myImage { background-image: url("file:///android_asset/
myImage.jpg"; width: 50px; height: 50px;}
</style>
</head>
<body>
<div id="myImage"></div>
</body>
I realize that it's currently not possible to use "file:///" within
the current Android versions and that it is supposed to come back. But
is there some way to do this using a ContentProvider?
I have found a few examples of using ContentProvider, but these seem
to all assume that all of the html/css/images are within the assets
directory.
So, is there any way to be able to do this? My main goal is to just
have the application request all the HTML from a server, but be able
to map the image urls to local resources within the application.
Thanks in advance,
Marc
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---