I am following this example: http://developer.android.com/guide/topics/ui/layout/listview.html
I am at this method:
// 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);
}
I am trying to construct my own CursorLoader for a SQLite database. I have created earlier a subclass of SQLiteOpenHelper
. How do I get a URI to be used as a second argument of CursorLoader
constructor?