[mono-android] Local html in assets folder

Steven Pack steven_john_pack at yahoo.com.au
Tue Dec 13 15:49:42 EST 2011


>Hi,
>
>The Android docs and samples have the following for loading local html:
>
>var webView = new WebView (this);
>this.SetContentView (webView);
>			
>webView.LoadUrl ("file://android_asset/index.html");
>
>Not suprisingly, I get the error that the file does not exist. I already
>use assets for other resources that I read as a stream, write to the SD
>card and then 
>read from there. Do I have do that here too? Or is there some assets
>integration like file://android_asset that I am missing?
>
>Steve
>
>
>




More information about the Monodroid mailing list