Android Loader Pass parameters using a Bundle

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9


You can pass parameters by Bundle:

Bundle myBundle = new Bundle();
myBundle.putString(MY_KEY, myValue);

Get the value in onCreateLoader:

public Loader<String> onCreateLoader(int id, final Bundle args) {
    final String myParam = args.getString(MY_KEY);

Got any Android Question?