DataBase-CRUD Tutorial for Android

Farhan's Blogs & Portal

Here is the DataBase CRUD Tutorial for Android.

First of all create the SQLite DB and paste in the assets folder.

See Blog for creation of SQLite DB http://mfarhan133.wordpress.com/2010/10/24/working-with-sqlite-db-tutorial/

Use DBAdapter Class for DB connectivity and CRUD manipulation.

Its functions details are commented in class itself.

You can download its complete source code from here.

Select

First of all on the start of application(Splash) call createDataBase() function to create and copy database from assets folder(Select in my case). After first time creation of DB used DB will be now on “/data/data/mypackagename/database/” path.

Insert

Update

Delete

DBAdapter.java

Related Bloghttp://www.screaming-penguin.com/node/7742

View original post

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s