Skip to content

Instantly share code, notes, and snippets.

@cutiko
Last active August 25, 2016 20:42
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 cutiko/8222ef4b33964cefe283d42b370bab85 to your computer and use it in GitHub Desktop.
Save cutiko/8222ef4b33964cefe283d42b370bab85 to your computer and use it in GitHub Desktop.
Android simpliest Activity Intent
Intent goToActivity = new Intent(YourCurrentActivity.this, OtherActivity.class);
startActivity(goToActivity);
//The first param in setClass() is the context, usually can be YourCurrentActivity.this but also can be,
//this, getApplicationContext, getContext, or Contex context if variable context was initialized before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment