Skip to content

Instantly share code, notes, and snippets.

@gotoark
Last active November 15, 2016 10:00
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 gotoark/bcbb4d43968cf78207f7719967d61372 to your computer and use it in GitHub Desktop.
Save gotoark/bcbb4d43968cf78207f7719967d61372 to your computer and use it in GitHub Desktop.
Start New Activity On Button Clicks In ANDROID
button = (Button) findViewById(R.id.buttonid);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(FirstActivity.this, SecondActivity.class);
startActivity(intent);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment