Skip to content Skip to sidebar Skip to footer

Blackberry - Attach Pre-populated Sqlite Database

I have a pre-populated sqlite database and I need to attach this within my Blackberry app. I am using phonegap and therefore using the following javascript code to open my database

Solution 1:

You have to have Javascript create the database when using webworks. There is currently no way to import an existing sqlite db into a webworks app. (You tagged this as phonegap, but I think phonegap uses webworks to create the app)

The common workaround to this is to include a JSON or XML file with all the data to be loaded. When you create the database, read the included file and add that data to it.

Post a Comment for "Blackberry - Attach Pre-populated Sqlite Database"