I’m implementing a cross-platform app for Android, iOS, and BlackBerry. I’m using PhoneGap to produce native language versions for each platform. I want to know how to create, access, and search a SQLite database.
I’ve read in the documentation that it can be created via a Javascript file but I want to know where to place that file and how to reference it in the code.
Take a look at Lawnchair (http://brian.io/lawnchair/), its pretty easy to use and out-of-the box probably does most of what you need (including searching), it’s cross-browser, battle tested and degrades nicely through the use of adapters. There is an adapter for Blackberry, and a plugin that supports queries. Here is quick example using the webkit adapter, which is good for Android and iPhone, to show how simple it is.