timmy00274672 / AndroidPractice

Example of Learning Android
4 stars 1 forks source link

Understanding one question about SQLiteOpenHelper #26

Open timmy00274672 opened 10 years ago

timmy00274672 commented 10 years ago

check the question and edit the wiki page.

make sure that SQLiteDatabases returned from SQLiteOpenHelper whether are same object or not.

If same, means that wiki page is not a good example.

    //dbHelper is an instance of SQLiteOpenHelper(subclass)
    if(dbHelper.getReadableDatabase()==dbHelper.getReadableDatabase()){}
    if(dbHelper.getWritableDatabase()==dbHelper.getWritableDatabase()){}