我在我的应用程序中使用数据库,因为我已经从数据库中获取数据,但是我不知道如何在textview中显示它。从数据库列表视图
这里是我的代码:
super.onCreate(savedInstanceState);
setContentView(R.layout.report);
db.open();
Cursor c = db.getAllTitles();
startManagingCursor(c);
String[] from = new String[] { db.KEY_INCOME };
int[] to = new int[] { R.id.textView1 };
SimpleCursorAdapter notes =
new SimpleCursorAdapter(this, R.layout.report, c, from, to);
这里的音符在数据库value.But不知道如何着手如何在列表视图中显示。