mail-archives/monodroid/2011-December/007797.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>
&gt;<i>Hi,
</I>&gt;<i>
</I>&gt;<i>The Android docs and samples have the following for loading local html:
</I>&gt;<i>
</I>&gt;<i>var webView = new WebView (this);
</I>&gt;<i>this.SetContentView (webView);
</I>&gt;<i>
</I>&gt;<i>webView.LoadUrl (&quot;<A HREF="file://android_asset/index.html&quot;">file://android_asset/index.html&quot;</A>);
</I>&gt;<i>
</I>&gt;<i>Not suprisingly, I get the error that the file does not exist. I already
</I>&gt;<i>use assets for other resources that I read as a stream, write to the SD
</I>&gt;<i>card and then
</I>&gt;<i>read from there. Do I have do that here too? Or is there some assets
</I>&gt;<i>integration like <A HREF="file://android_asset">file://android_asset</A> that I am missing?
</I>&gt;<i>
</I>&gt;<i>Steve
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<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>