Skip to content

Instantly share code, notes, and snippets.

@Acconut
Created July 6, 2016 11:25
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 Acconut/97ecd19cc53ce81a7b298e1f4b7cab2e to your computer and use it in GitHub Desktop.
Save Acconut/97ecd19cc53ce81a7b298e1f4b7cab2e to your computer and use it in GitHub Desktop.
@Override
public void onClick(View v) {
Class<?> activity = null;
switch(v.getId()) {
case R.id.myprojects_button:
activity = MyProjectsActivity.class;
break;
case R.id.projectsupport_button:
activity = ProjectSupportActivity.class;
break;
}
Intent intent = new Intent(this, activity);
startActivity(intent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment