Skip to content

Instantly share code, notes, and snippets.

@dlemures
Last active May 9, 2016 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlemures/dcb460623fe4e639cef68af4b484e829 to your computer and use it in GitHub Desktop.
Save dlemures/dcb460623fe4e639cef68af4b484e829 to your computer and use it in GitHub Desktop.
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