Pass parameters using a Bundle
suggest changeYou can pass parameters by Bundle:
Bundle myBundle = new Bundle();
myBundle.putString(MY_KEY, myValue);
Get the value in onCreateLoader:
@Override
public Loader<String> onCreateLoader(int id, final Bundle args) {
final String myParam = args.getString(MY_KEY);
...
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents