Thursday, 11 August 2011

Android SQLite Database

The best (most simple and easy to follow) tutorial/guide for working with the Android SQLite database I could fine was this one:

Key points:
  1. Write a 'helper' class which extends SQLiteOpenHelper and manages database creation, upgrading, opening and so on.
  2. Write an 'adapter' class which references the 'helper' class and provides methods for opening and closing the database, as well as inserting records, fetching records and so on.
  3. Reference the 'adapter' class in your Activity classes to perform actions on the database.

No comments: