[mono-android] sqlite
devbuzz
derek at fieldmetrix.com
Thu Dec 22 15:39:48 EST 2011
@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: http://mono-for-android.1047100.n5.nabble.com/sqlite-tp5054381p5095591.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list