Click on button not taking to next Activity in android
Posted
by
user1805266
on Stack Overflow
See other posts from Stack Overflow
or by user1805266
Published on 2012-11-23T04:33:40Z
Indexed on
2012/11/23
4:59 UTC
Read the original article
Hit count: 98
android
When i click on GO button its not taking to next Activity. I am using the following code.. can any one correct me where am i going wrong?
final Button button = (Button) findViewById(R.id.button1);
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// Perform action on click
startActivity(new Intent(currentActivity.this, NextActivity.class));
}
});
© Stack Overflow or respective owner