我正在尝试在android中创建一个sqlite db,但是当我在手机中尝试这个时,永远不要创建数据库......
static void obrirConn () {
dbconn = (IDbConnection)new SqliteConnection ("URI=file:" + Application.persistentDataPath + "/Timmy_Game.db");
dbconn.Open(); //Open connection to the database.
dbcmd = dbconn.CreateCommand();
dbcmd.CommandText = "create table IF NOT EXISTS `nivells` (`id` INTEGER NOT NULL UNIQUE, `temps` INTEGER, `puntuacio` INTEGER, PRIMARY KEY(`id`));";
dbcmd.ExecuteNonQuery();
}