Skip to content

Instantly share code, notes, and snippets.

@npike
Created May 9, 2013 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npike/5549706 to your computer and use it in GitHub Desktop.
Save npike/5549706 to your computer and use it in GitHub Desktop.
@Override
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
CursorLoader modelsForMakeCursorLoader = new Builder(getActivity())
.uri(ModelContract.Models.CONTENT_URI)
.addProjectionColumn(BaseColumns._ID)
.addProjectionColumn(ModelContract.Models.COLUMN_NAME_MAKE_NAME)
.addProjectionColumn(ModelContract.Models.COLUMN_NAME_MODEL)
.build();
return modelsForMakeCursorLoader;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment