Created
July 6, 2016 11:25
-
-
Save Acconut/97ecd19cc53ce81a7b298e1f4b7cab2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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