Home > Google Android > Google Android: SQLite – database creation

Google Android: SQLite – database creation

This is just only for me as to remember. Maybe, it could help to anybody. Cheers…

// SQL Statement to create a new database.
private static final String DATABASE_CREATE = “create table “ +
“ integer primary key autoincrement, “ +
KEY_TASK + “ text not null, “ + KEY_CREATION_DATE + “ long);”;
public void onCreate(SQLiteDatabase _db) {

“After while, when Android class has been finished”

I realized maybe I should do more comments here. Android allows you to save or load files from underlying file system which is great. You can employ it for data exchange over your application sessions.

Android provides a fully implemented SQLite RDBMS to all application. This allows you to create relational databases to persist application data.  You should learn more about Content Provider and also Cursor Android Class. All databases and CP queries are returned as Cursors. So Cursor knowledge is the key here to know how to work with data properly.

Categories: Google Android
  1. No comments yet.
  1. No trackbacks yet.

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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: