1.) Load a Base64 string with the raw image bytes, as done here:
http://stackoverflow.com/questions/5267124/how-to-display-image-with-webview-loaddata
Or...
2.) Reference an image from the assets directory, as done here:
http://www.androidsnippets.com/webview-with-custom-html-and-local-images
Which way is the most efficient?
I'm wondering because it would be nice to not have to keep images
outside of the drawables directory, yet it seems that method one is
doing a lot of work. Does android basically do the same thing (as
method one) under the hood of the WebView?
Thanks.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment