Instantly share code, notes, and snippets.

What would you like to do?
public class IntentFactory {
public Intent newDetailActivityIntent(Context context, String itemId, boolean showMap) {
Intent intent = new Intent(context, DetailActivity.class);
intent.putExtra(EXTRA_ITEM_ID, itemId);
intent.putExtra(EXTRA_SHOW_MAP, showMap);
return intent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment