Back to project page DEVIEW2014_AndroidApp_Demo.
The source code is released under:
Apache License
If you think the Android project DEVIEW2014_AndroidApp_Demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nhn.android.deview.dao; /*from w w w . ja v a2s . c o m*/ import java.util.Vector; import android.content.ContentValues; import android.database.Cursor; import com.nhn.android.deview.AppContext; import com.nhn.android.deview.AppTable; import com.nhn.android.deview.core.db.CursorReader; public class MyMemoManager { public static void addMemo(MyMemo memo) { ContentValues value = null; AppContext.getDB().insert(AppTable.MYMEMO, null, value); } @SuppressWarnings("unchecked") public static Vector<MyMemo> getMemoList() { Cursor c = AppContext.getDB().query(AppTable.MYMEMO, null, null, null, null, null, null); Vector<MyMemo> list = CursorReader.readAll(c, MyMemo.class); return list; } }