зеркало из https://github.com/mono/mail-archives.git
87 строки
3.0 KiB
HTML
87 строки
3.0 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE> [mono-android] sqlite
|
||
|
</TITLE>
|
||
|
<LINK REL="Index" HREF="index.html" >
|
||
|
<LINK REL="made" HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20sqlite&In-Reply-To=1324585413200-5095553.post%40n5.nabble.com">
|
||
|
<META NAME="robots" CONTENT="index,nofollow">
|
||
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
||
|
<LINK REL="Previous" HREF="008039.html">
|
||
|
<LINK REL="Next" HREF="008043.html">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#ffffff">
|
||
|
<H1>[mono-android] sqlite</H1>
|
||
|
<B>devbuzz</B>
|
||
|
<A HREF="mailto:monodroid%40lists.ximian.com?Subject=%5Bmono-android%5D%20sqlite&In-Reply-To=1324585413200-5095553.post%40n5.nabble.com"
|
||
|
TITLE="[mono-android] sqlite">derek at fieldmetrix.com
|
||
|
</A><BR>
|
||
|
<I>Thu Dec 22 15:39:48 EST 2011</I>
|
||
|
<P><UL>
|
||
|
<LI>Previous message: <A HREF="008039.html">[mono-android] Reference to Service Class started with StartService
|
||
|
</A></li>
|
||
|
<LI>Next message: <A HREF="008043.html">[mono-android] sqlite
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#8040">[ date ]</a>
|
||
|
<a href="thread.html#8040">[ thread ]</a>
|
||
|
<a href="subject.html#8040">[ subject ]</a>
|
||
|
<a href="author.html#8040">[ author ]</a>
|
||
|
</LI>
|
||
|
</UL>
|
||
|
<HR>
|
||
|
<!--beginarticle-->
|
||
|
<PRE>@wanting,
|
||
|
|
||
|
Had exactly the same issue; spent a whole day trying to make it work as per
|
||
|
the instructions here.
|
||
|
|
||
|
In the end the only thing that worked was putting the database in a
|
||
|
different folder.
|
||
|
|
||
|
This is how I managed the database folder:
|
||
|
|
||
|
var personalFolderPath =
|
||
|
System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
|
||
|
var databaseFolderPath = string.Format(@"{0}/database",
|
||
|
personalFolderPath.Substring(0, personalFolderPath.LastIndexOf('/')));
|
||
|
if (!Directory.Exists(databaseFolderPath))
|
||
|
Directory.CreateDirectory(databaseFolderPath);
|
||
|
if (!Directory.Exists(databaseFolderPath))
|
||
|
throw new Exception(string.Format("{0} not found!",
|
||
|
databaseFolderPath));
|
||
|
|
||
|
--
|
||
|
View this message in context: <A HREF="http://mono-for-android.1047100.n5.nabble.com/sqlite-tp5054381p5095591.html">http://mono-for-android.1047100.n5.nabble.com/sqlite-tp5054381p5095591.html</A>
|
||
|
Sent from the Mono for Android mailing list archive at Nabble.com.
|
||
|
</PRE>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<!--endarticle-->
|
||
|
<HR>
|
||
|
<P><UL>
|
||
|
<!--threads-->
|
||
|
<LI>Previous message: <A HREF="008039.html">[mono-android] Reference to Service Class started with StartService
|
||
|
</A></li>
|
||
|
<LI>Next message: <A HREF="008043.html">[mono-android] sqlite
|
||
|
</A></li>
|
||
|
<LI> <B>Messages sorted by:</B>
|
||
|
<a href="date.html#8040">[ date ]</a>
|
||
|
<a href="thread.html#8040">[ thread ]</a>
|
||
|
<a href="subject.html#8040">[ subject ]</a>
|
||
|
<a href="author.html#8040">[ 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>
|