See this:
http://developer.android.com/reference/android/webkit/WebView.html#loadDataWithBaseURL(java.lang.String,
java.lang.String, java.lang.String, java.lang.String, java.lang.String)
It says:
Note for post 1.0. Due to the change in the WebKit, the access to
asset files through "file:///android_asset/" for the sub resources is
more restricted. If you provide null or empty string as baseUrl, you
won't be able to access asset files. If the baseUrl is anything other
than http(s)/ftp(s)/about/javascript as scheme, you can access asset
files for sub resources.
Seems like you just need to do two things:
- Provide a "good" URL as the base URL.
- Make sure you reference images with "file:///android_asset/<asset_name>".
-- Kostya
12.12.2010 7:45, Ankur Avlani ?????:
I have around 4 MB of Photos, which I want to keep it local with the
APK. Why I want to keep HTML on the server is because there is some
PHP code also present, which renders the UI. By performance I mean is
to save the image loading time taken, by keeping the images local.
On Sat, Dec 11, 2010 at 12:57 PM, Frank Weiss <[email protected]
<mailto:[email protected]>> wrote:
I bit more info please. How many KB does "high resolution" mean?
If you want to store the images locally, why do you want the HTML
to come from the server? What does "performance" specifically
mean, with respect to the user experience?
--
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[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
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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