【发布时间】:2013-10-30 22:55:37
【问题描述】:
我正在关注这个例子:http://developer.android.com/guide/topics/ui/layout/listview.html
我在这个方法:
// Called when a new Loader needs to be created
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
// Now create and return a CursorLoader that will take care of
// creating a Cursor for the data being displayed.
return new CursorLoader(this, ContactsContract.Data.CONTENT_URI,
PROJECTION, SELECTION, null, null);
}
我正在尝试为 SQLite 数据库构建自己的 CursorLoader。我之前创建了SQLiteOpenHelper 的子类。如何获取 URI 用作CursorLoader 构造函数的第二个参数?
【问题讨论】:
标签: android sqlite listactivity android-loadermanager