mercredi 29 avril 2015

Database file created in unity but not in android

I have used the following code to create a database

string conn= "URI=file:" + Application.persistentDataPath + "/MyDatabase.s3db";
IDbConnection dbconn;
dbconn = (IDbConnection) new SqliteConnection(conn);
dbconn.Open();

this code is creating a database named MyDatabase.s3db in

C:\Documents and Settings\admin\Local Settings\Application Data\myapp\myappname

But when I build the apk and run it in android phone no database file is created.

Aucun commentaire:

Enregistrer un commentaire