views:

165

answers:

2

can anybody give example how to connect sqlite with android?

Thanks in advance

+2  A: 

The Android Developer's Data section might be useful.

Additionally there's a tutorial that might provide an easier entry to just talking to SQLite.

It's all about

import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteStatement;
Travis
+2  A: 

The below lines you has to import to work with sqlite database:

import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.database.sqlite.SQLiteStatement;

I suggest you some links where you get the examples and full ideas for SQLite database:

  1. http://marakana.com/forums/android/examples/55.html
  2. http://www.hdelossantos.com/2010/01/07/using-a-sqlite-database-in-android/
  3. http://learnandroid.blogspot.com/2008/01/android-database.html
  4. http://www.anddev.org/working_with_the_sqlite-database_-_cursors-t319.html
  5. http://www.devx.com/wireless/Article/40842

Hope you refer these links and this links helps you.

Enjoy!!!!

PM - Paresh Mayani
sugar
@Sugar....I have some useful links so i provided
PM - Paresh Mayani