Tag: database adapter
Using a SQLite Database in Android
by Hanly on Jan.07, 2010, under Tutorials
This tutorial will demonstrate how to use the database adapter created in “Creating a SQLite Database in Android” to add and get data to and from the database to populate a ListView.
(continue reading…)
Creating a SQLite database in Android
by Hanly on Dec.23, 2009, under Tutorials
This example will show you how to create a somewhat abstracted SQLite adapter on Android. This adapter can then be utilized by your program to do common database functions such as, querying and searching. I start by creating the class DBAdapter in my Android project and declaring the variable data necessary to create the database.
EDIT: The code has been modified since it originally assumed that a key option would be passed for every key. It will now work if no key options are passed. Additionally, “null” can also be passed to it if no key options are desired.
