Code examples for CursorLoader

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
21:	CursorLoader cursorLoader = new CursorLoader(new Activity(), 
-
28:	assertThat(cursorLoader.getUri()).isEqualTo(uri); 
29:	assertThat(cursorLoader.getProjection()).isEqualTo(projection); 
30:	assertThat(cursorLoader.getSelection()).isEqualTo(selection); 
31:	assertThat(cursorLoader.getSelectionArgs()).isEqualTo(selectionArgs); 
32:	assertThat(cursorLoader.getSortOrder()).isEqualTo(sortOrder); 
Full Snippet Info
9
CodeRank
21:	CursorLoader cursorLoader = new CursorLoader(new Activity(), 
-
28:	assertThat(cursorLoader.getUri()).isEqualTo(uri); 
29:	assertThat(cursorLoader.getProjection()).isEqualTo(projection); 
30:	assertThat(cursorLoader.getSelection()).isEqualTo(selection); 
31:	assertThat(cursorLoader.getSelectionArgs()).isEqualTo(selectionArgs); 
32:	assertThat(cursorLoader.getSortOrder()).isEqualTo(sortOrder); 
Full Snippet Info
9
CodeRank
51:	final CursorLoader loader = new CursorLoader(context); 
52:	loader.setUri(queryData.getUri()); 
53:	loader.setProjection(queryData.getProjection()); 
54:	loader.setSelection(queryData.getSelection()); 
55:	loader.setSelectionArgs(queryData.getSelectionArgs()); 
56:	loader.setSortOrder(queryData.getOrderBy()); 
Full Snippet Info
7
CodeRank
17:	super(context); 
Full Snippet Info
7
CodeRank
18:	super(context); 
Full Snippet Info
7
CodeRank
490:	CursorLoader cl = new CursorLoader(getActivity(), MainTable.CONTENT_URI, 
-
492:	cl.setUpdateThrottle(2000); // update at most every 2 seconds. 
Full Snippet Info
6
CodeRank
62:	return new CursorLoader( 
Full Snippet Info
6
CodeRank
66:	CursorLoader cursorLoader = new CursorLoader(context, Uri.parse(URI), null, where, args, COLUMN + " ASC"); 
67:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
6
CodeRank
37:	super(context); 
-
39:	setUri(uri); 
40:	setSortOrder(null); 
41:	setProjection(null); 
42:	setSelection(null); 
43:	setSelectionArgs(null); 
Full Snippet Info
6
CodeRank
66:	CursorLoader cursorLoader = new CursorLoader(context, Uri.parse(URI), null, where, args, COLUMN + " ASC"); 
67:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
6
CodeRank
51:	final CursorLoader loader = new CursorLoader(context); 
52:	loader.setUri(queryData.getUri()); 
53:	loader.setProjection(queryData.getProjection()); 
54:	loader.setSelection(queryData.getSelection()); 
55:	loader.setSelectionArgs(queryData.getSelectionArgs()); 
56:	loader.setSortOrder(queryData.getOrderBy()); 
Full Snippet Info
6
CodeRank
42:	super(context); 
-
45:	setProjection(PROJECTION); 
46:	setSelection(createSelection()); 
47:	setSelectionArgs(createSelectionArgs()); 
48:	setSortOrder(SORT_ORDER); 
49:	setUri(uri); 
Full Snippet Info
6
CodeRank
49:	return new CursorLoader( 
Full Snippet Info
6
CodeRank
59:	super(context); 
60:	setUri(GROUP_LIST_URI); 
61:	setProjection(PROJECTION); 
62:	setSelection(SELECTION); 
63:	setSelectionArgs(SELECTION_ARGS); 
64:	setSortOrder(SORT_ORDER); 
Full Snippet Info
6
CodeRank
29:	setSelection(mSelector.getSelection(mContext)); 
30:	setSelectionArgs(mSelector.getSelectionArgs()); 
31:	setSortOrder(mSelector.getSortOrder()); 
-
33:	return super.loadInBackground(); 
Full Snippet Info
6
CodeRank
96:	return new CursorLoader(getActivity(), uri, projection, null, null, sortOrder); 
Full Snippet Info
6
CodeRank
104:	return new CursorLoader(getActivity(), uri, projection, null, null, sortOrder); 
Full Snippet Info
6
CodeRank