[android-developers] Re: WebView using Assets

2012-01-31 Thread arnouf
You have to use loadData applied on webview and you can retrieve your 
assets using getAssetManager

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: WebView using Assets

2012-01-31 Thread atcal
Thanks. It was the form of URL I was missing.

On Jan 31, 1:19 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Tue, Jan 31, 2012 at 5:31 AM, atcal alan.williams...@ya.com wrote:
  I'd like to use html (with images, btw) to provide documentation for
  my app. I thought to store my documentation pages in assets and use
  webview but I cannot find a way to link the webview to the assets.
  Does anyone know if this is possible?

 webView.loadUrl(file:///android_asset/path/to/your/file.html) works fine.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en