dimanche 8 février 2015

ENOENT (No such file or directory) on database file


java.io.IOException: open failed: ENOENT (No such file or directory)


This happens on this line of code:



File db = getDatabasePath("questions");
db.createNewFile();//HERE


I am trying to create a database file with the name questions.db , which will be empty. I will then pull the file from the server and insert it there. I then want to be able to access the database from sqlite.


Aucun commentaire:

Enregistrer un commentaire