Beispiel #1
0
 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
   db.execSQL("DROP TABLE IF EXISTS contact");
   onCreate(db);
 }
Beispiel #2
0
 public void onCreate(SQLiteDatabase db) {
   db.execSQL(
       "CREATE TABLE contact ( _id INTEGER PRIMARY KEY AUTOINCREMENT, " + "name TEXT, tel TEXT);");
 }