Phonegap: I Can't Find My Sqlite Database On Android Emulator
I try to create my first Phonegap app. My previous experience with mobile developing was an android application. I create finally a database and store some data inside with above
Solution 1:
This might solve what you are finding.
In eclipse, go to DDMS perspective --> File Explorer --> data --> data --> your package --> databases
Solution 2:
In the "onDeviceReady()" function you can use:
if(!dbcreate){ db = window.sqlitePlugin.openDatabase("001010101010", "1.0", "My_Database", -1); }
And forload file:
File dbFile = getDatabasePath(".001010101010.db"); The DB file needs to be in the next route:
yourProyect/assets/001010101010.db.
you can also check more about sqllite : http://gauravstomar.blogspot.in/2011/08/prepopulate-sqlite-in-phonegap.html
Post a Comment for "Phonegap: I Can't Find My Sqlite Database On Android Emulator"