[Solved] Button not working (android studio) [duplicate]
try this way Intent i = new Intent(MainActivity.this, Main2Activity.class); startActivity(i); EDIT: I wanted to add a bit of an explanation to help Hi MRAK, First things first, you do NOT need to create an onClick listener. Remove all of that completely. Android studio is a beast and automatically does that for you using the XML … Read more