Posts

Showing posts from May, 2012

CRUD operation in Android

Image
Android Database Connectivity My Dear Friends, It is million dollar question, how to perform C RUD operation in Android that means how to persist data in database, how to fetch data from database, and how to update or delete a specific record of database. This blog is solution of this problem and also helpful for creating dialog box in Android. For Android, SQLite is "baked into" the Android runtime, so every Android application can create SQLite databases. Android provides its own API to deal with database connectivity. This API is provided in android.database   and android.database.sqlite packages. In this package important classes are 1.       SQLiteOpenHelper 2.       SQLiteDatabase 3.       Cursor 4.       SQLException SQLiteOpenHelper class takes care of opening the database if it exists, creating it if it does not, and upgrading it as necess...