Created
January 16, 2014 12:17
-
-
Save benigumocom/8454028 to your computer and use it in GitHub Desktop.
Loaderへ引数を渡す
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void onNewQuery(String query) { | |
Bundle args = new Bundle(); | |
args.putString("query", query); | |
getLoaderManager().restartLoader(LOADER_ID, args, loaderCallbacks); | |
} | |
@Override | |
public Loader<Result> onCreateLoader(int id, Bundle args) { | |
return new QueryLoader(getActivity(), args.getString("query")); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment