Best code examples for Android CursorLoader class (android.support.v4.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: getProjection, getSelection, getSelectionArgs, getSortOrder, getUri
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
This code example shows how to use the following methods: getProjection, getSelection, getSelectionArgs, getSortOrder, getUri
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
This code example shows how to use the following methods: setProjection, setSelection, setSelectionArgs, setSortOrder, setUri
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
This code example shows how to use the following methods:
17:	super(context); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
18:	super(context); 
Full Snippet Info
7
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:
15:	public class SherlockFragment extends Fragment implements OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, OnOptionsItemSelectedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
62:	return new CursorLoader( 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setRetainInstance
20:	public ColorFragment(int colorRes) { 
-
22:	setRetainInstance(true); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class LoadingFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: loadInBackground
66:	CursorLoader cursorLoader = new CursorLoader(context, Uri.parse(URI), null, where, args, COLUMN + " ASC"); 
67:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setProjection, setSelection, setSelectionArgs, setSortOrder, setUri
37:	super(context); 
-
39:	setUri(uri); 
40:	setSortOrder(null); 
41:	setProjection(null); 
42:	setSelection(null); 
43:	setSelectionArgs(null); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: loadInBackground
66:	CursorLoader cursorLoader = new CursorLoader(context, Uri.parse(URI), null, where, args, COLUMN + " ASC"); 
67:	Cursor cursor = cursorLoader.loadInBackground(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setRetainInstance
33:	super(); 
-
36:	setRetainInstance(true); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: setProjection, setSelection, setSelectionArgs, setSortOrder, setUri
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
This code example shows how to use the following methods: setProjection, setSelection, setSelectionArgs, setSortOrder, setUri
42:	super(context); 
-
45:	setProjection(PROJECTION); 
46:	setSelection(createSelection()); 
47:	setSelectionArgs(createSelectionArgs()); 
48:	setSortOrder(SORT_ORDER); 
49:	setUri(uri); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
25:	public class FragmentTabs extends FragmentActivity implements LocationListener{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
13:	public class FeedIntelligenceSelectorFragment extends Fragment implements StateChangedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: setProjection, setSelection, setSelectionArgs, setSortOrder, setUri
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
This code example shows how to use the following methods:
10:	public class TaskListActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
28:	public class OptionsMenuSupportFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class TestFragmentActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
13:	public class CustomFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
6:	public class DetailForm extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
24:	public class DetailsFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class Weather extends FragmentActivity 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	public class SherlockFragment extends Fragment implements OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, OnOptionsItemSelectedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
10:	public class CalculatorActivity extends FragmentActivity implements OperationListFragment.ItemEventListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
57:	public static class TestFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
16:	public class MockSlidingTabActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class BrewDetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class Controller extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	import android.view.ViewGroup; 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class FragmentStackActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class ServerActivity extends FragmentActivity{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
17:	public class BshFragment extends Fragment implements OnClickListener, 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class MainActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
20:	public class BshFragment extends Fragment implements OnClickListener, 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
16:	public class BaseActivity extends FragmentActivity implements WarningDialog.DialogListener{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
23:	public class DetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class BaseActivity extends FragmentActivity 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
12:	public class MainActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
10:	public class UserActivity extends FragmentActivity implements UserListFragment.Callbacks { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
17:	public class FileDetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
See Code Examples for Android CursorLoader Methods: