Info

dttaalt proparr»«*

ftWM 1l Activity Ji ActivityMain/^Ji-1 ListActivity, fllfe^J&fHjib'JiiiCfl"-jft diary list.xmL % T ListActivity NiiYtU* ii7 J- List View Mfttlh

itMJS^^ft • K DiaryDbAdapter iZ^MSk f DatabaseHelper ill

SQLiteDatabase ft DiaryDbAdapter ifiXT W NL1\'£M:

• DatabaseHelper SQLiteDatabase (Kj'^c'^l:

DatabaseHelper -t^lT -ft. R^afc'Mfl'f ffiiS. «if 1ft onUpgrade iff in T

rmmm, it-w^n Fr^s private static class DatabaseHelper extends SQLiteOpenHelper {

DatabaseHelper(Context context) |

super(context, DATABASE NAME, null, DATABASE_VERSION);

@Override public void onCreate (SQl.i teDatabase db) f n 8 ft »aigJft-6*-Android Wftjgftfittlft db.execSQL(DATABASE CREATE); ¡^Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) ( db.execSQL("DROP TABLE IF EXISTS diary"); onCreate (dl)) ;

0 0

Post a comment