Skip to content

Instantly share code, notes, and snippets.

@amatkivskiy
Last active September 22, 2016 09:27
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 amatkivskiy/350d873195000c16591cdfda0c6a71aa to your computer and use it in GitHub Desktop.
Save amatkivskiy/350d873195000c16591cdfda0c6a71aa to your computer and use it in GitHub Desktop.
public static Intent createIntent(Context context, int contentId, Class<?> referrer) {
Intent intent = new Intent(context, ContentDetailsActivity.class);
intent.putExtra(CONTENT_ID, contentId);
Referrers.putReferrer(intent, referrer);
return intent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment