зеркало из https://github.com/mono/mail-archives.git
108 строки
3.0 KiB
HTML
108 строки
3.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [mono-android] Local html in assets folder
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Local%20html%20in%20assets%20folder&In-Reply-To=CB0D88F1.CBFF%25steven_john_pack%40yahoo.com.au">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="007800.html">
|
|
<LINK REL="Next" HREF="007801.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[mono-android] Local html in assets folder</H1>
|
|
<B>Steven Pack</B>
|
|
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20Local%20html%20in%20assets%20folder&In-Reply-To=CB0D88F1.CBFF%25steven_john_pack%40yahoo.com.au"
|
|
TITLE="[mono-android] Local html in assets folder">steven_john_pack at yahoo.com.au
|
|
</A><BR>
|
|
<I>Tue Dec 13 15:49:42 EST 2011</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="007800.html">[mono-android] Mono for Android 4.0.1 Available
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007801.html">[mono-android] Local html in assets folder
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7797">[ date ]</a>
|
|
<a href="thread.html#7797">[ thread ]</a>
|
|
<a href="subject.html#7797">[ subject ]</a>
|
|
<a href="author.html#7797">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>
|
|
><i>Hi,
|
|
</I>><i>
|
|
</I>><i>The Android docs and samples have the following for loading local html:
|
|
</I>><i>
|
|
</I>><i>var webView = new WebView (this);
|
|
</I>><i>this.SetContentView (webView);
|
|
</I>><i>
|
|
</I>><i>webView.LoadUrl ("<A HREF="file://android_asset/index.html"">file://android_asset/index.html"</A>);
|
|
</I>><i>
|
|
</I>><i>Not suprisingly, I get the error that the file does not exist. I already
|
|
</I>><i>use assets for other resources that I read as a stream, write to the SD
|
|
</I>><i>card and then
|
|
</I>><i>read from there. Do I have do that here too? Or is there some assets
|
|
</I>><i>integration like <A HREF="file://android_asset">file://android_asset</A> that I am missing?
|
|
</I>><i>
|
|
</I>><i>Steve
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>
|
|
|
|
</PRE>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="007800.html">[mono-android] Mono for Android 4.0.1 Available
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007801.html">[mono-android] Local html in assets folder
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7797">[ date ]</a>
|
|
<a href="thread.html#7797">[ thread ]</a>
|
|
<a href="subject.html#7797">[ subject ]</a>
|
|
<a href="author.html#7797">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/monodroid">More information about the Monodroid
|
|
mailing list</a><br>
|
|
</body></html>
|