String dbName = "test.db" ; int dbMode = Context. MODE_PRIVATE ; SQLiteDatabase db = context.openOrCreateDatabase(dbName, dbMode, null ); String sql = null ; try { sql = "DROP TABLE table1;" ; db.execSQL(sql); Log. d ( "sqliteTest" , "drop table" ); } catch (SQLException e){ Log. e ( "sqliteTest" , e.toString()); } try { sql = "CREATE TABLE table1 (id text primary key, name text);" ; db.execSQL(sql); Log. d ( "sqliteTest" , "create table" ); } catch (SQLException e){ Log. e ( "sqliteTest" , e.toString()); } try { ContentValues initialValues = new ContentValues(); initialValues.put( "id" , "1" ); initialValues.put( "name" , "one" ); db.insert( "table1" , null , initialValues); ...