http://www.vogella.de/articles/AndroidSQLite/article.html
Key points:
- Write a 'helper' class which extends SQLiteOpenHelper and manages database creation, upgrading, opening and so on.
- 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.
- Reference the 'adapter' class in your Activity classes to perform actions on the database.
No comments:
Post a Comment