@Override public Loader<Cursor> onCreateLoader(int id, Bundle args) { Log.d(TAG, "onCreateLoader"); return new CursorLoader( getActivity(), POIs.createUriSorted(mLocation), POIs.PROJECTION, mQuery, null, null); }
private void resetCursorLoaderUri() { Loader<Cursor> loader = getLoaderManager().getLoader(LOADER_ID_LIST); if (loader == null) { return; } CursorLoader cl = (CursorLoader) loader; cl.setUri(POIs.createUriSorted(mLocation)); loader.forceLoad(); }
@Override protected Uri getUri() { return POIs.createNoNotify(POIs.CONTENT_URI_RETRIEVED); }