Access a pre-populated database in Phonegap?

I created a new database from outside and placed it in the resource folder listed here. http://gauravstomar.blogspot.in/2011/08/prepopulate-sqlite-in-phonegap.html . I used the code in my activity, and the database was successfully copied to the appropriate folder. Now I can’t figure out how to access data from this database. The function window.openDatabase(database_name, database_version, database_displayname, database_size);creates a new database and replaces it with the existing one.

I want to know is their way of doing this?

+3
source share
1 answer

Well, you can use the sqlite plugin to access and modify the database.

Plugin Link

, , ,

SQL SQLite

0

All Articles