Best code examples for Android CursorLoader class (android.content.CursorLoader)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android CursorLoader class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android CursorLoader examples from Open Source projects
This code example shows how to use the following methods: setProjection, setSelection, setSortOrder, setUri
60:	loader.setUri(ContactMethods.CONTENT_URI); 
61:	loader.setProjection(POSTALS_PROJECTION); 
62:	loader.setSortOrder(People.DISPLAY_NAME); 
63:	loader.setSelection(ContactMethods.KIND + "=" + android.provider.Contacts.KIND_POSTAL); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setProjection, setSortOrder, setUri
60:	loader.setUri(Phones.CONTENT_URI); 
61:	loader.setProjection(PHONES_PROJECTION); 
62:	loader.setSortOrder(Phones.DISPLAY_NAME); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setProjection, setSortOrder, setUri
59:	loader.setUri(People.CONTENT_URI); 
60:	loader.setProjection(PEOPLE_PROJECTION); 
61:	loader.setSortOrder(People.DISPLAY_NAME); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
54:	return(new CursorLoader(this, CONTENT_URI, PROJECTION, null, null, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
59:	return(new CursorLoader(this, CalendarContract.Events.CONTENT_URI, 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
54:	return(new CursorLoader(this, CONTENT_URI, PROJECTION, null, null, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
59:	return(new CursorLoader(this, CalendarContract.Events.CONTENT_URI, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
131:	return new CursorLoader(getActivity(), baseUri, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setProjection, setSortOrder, setUri
56:	loader.setUri(People.CONTENT_URI); 
57:	loader.setProjection(PEOPLE_PROJECTION); 
58:	loader.setSortOrder(People.DISPLAY_NAME); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
161:	return new CursorLoader(getActivity(), baseUri, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setUpdateThrottle
490:	CursorLoader cl = new CursorLoader(getActivity(), MainTable.CONTENT_URI, 
-
492:	cl.setUpdateThrottle(2000); // update at most every 2 seconds. 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: loadInBackground, setSelection, setUri
72:	CursorLoader cl = new CursorLoader(getApplicationContext()); 
73:	cl.setUri(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI); 
74:	cl.setSelection("album_id = " + Long.toString(idAlbum)); 
75:	Cursor c = cl.loadInBackground(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
164:	return new CursorLoader(getActivity(), baseUri, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
148:	return new CursorLoader(FillCallLogTestActivity.this, Calls.CONTENT_URI, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setProjection, setSelection, setSortOrder, setUri
60:	loader.setUri(ContactMethods.CONTENT_URI); 
61:	loader.setProjection(POSTALS_PROJECTION); 
62:	loader.setSortOrder(People.DISPLAY_NAME); 
63:	loader.setSelection(ContactMethods.KIND + "=" + android.provider.Contacts.KIND_POSTAL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: loadInBackground
54:	CursorLoader cursorLoader =  new CursorLoader(this, contactData, projection, selection, null, null); 
55:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setProjection, setSortOrder, setUri
60:	loader.setUri(Phones.CONTENT_URI); 
61:	loader.setProjection(PHONES_PROJECTION); 
62:	loader.setSortOrder(Phones.DISPLAY_NAME); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
121:	CursorLoader cursorLoader = new CursorLoader(activity, contentUri, proj, null, null,null); 
-
124:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
114:	CursorLoader loader = new CursorLoader(context, photoUri, 
-
116:	Cursor cursor = loader.loadInBackground(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: loadInBackground
133:	CursorLoader cursorLoader = new CursorLoader(cordova.getActivity(), Uri.parse(fileLocation), projection, null, null, null); 
134:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: loadInBackground
129:	CursorLoader loader = new CursorLoader(getApplicationContext(), contentUri, proj, null, null, null); 
130:	Cursor cursor = loader.loadInBackground(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: loadInBackground
111:	CursorLoader loader = new CursorLoader(getApplicationContext(), contentUri, 
-
113:	Cursor cursor = loader.loadInBackground(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: loadInBackground
23:	CursorLoader loader = new CursorLoader(mContext, contentUri, proj, null, null, null); 
24:	Cursor cursor = loader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
70:	CursorLoader loader = new CursorLoader(activity.getBaseContext(), contentUri, projection, null, null, null); 
71:	cursor = loader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
206:	CursorLoader cursorLoader = new CursorLoader( 
-
214:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
34:	CursorLoader loader = new CursorLoader(context, contentUri, proj, null, null, null); 
35:	Cursor cursor = loader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
23:	CursorLoader cursorLoader = new CursorLoader(activity.getApplicationContext(), uri, proj, null, null, null); 
24:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
296:	CursorLoader cursorLoader = new CursorLoader(activity, contentUri, proj, null, null, null); 
297:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setProjection
75:	CursorLoader cursorLoader = new CursorLoader(this); 
76:	cursorLoader.setProjection(loadSongs ? songData:genreData); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: loadInBackground
21:	CursorLoader loader = new CursorLoader(ContactsActivity.this, contactUri, null, null, null, sort); 
22:	Cursor contactCursor = loader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
35:	CursorLoader cursorLoader = new CursorLoader(getActivity(), 
-
38:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: loadInBackground
93:	CursorLoader cl = new CursorLoader(mContext, uri, projection, where, selectionArgs, sortOrder); 
-
95:	return cl.loadInBackground(); 
Full Snippet Info
4
CodeRank
Related Android CursorLoader Questions & Answers:
Other Android CursorLoader Examples
49:	        // Now create and return a CursorLoader that will take care of
50:	        // creating a Cursor for the data being displayed.
51:	        return new CursorLoader(this, ContactsContract.Data.CONTENT_URI,
52:	                PROJECTION, SELECTION, null, null);
53:	    }

Read More

See Code Examples for Android CursorLoader Methods: