open another activity on button click with onClick code example
Example: android how to start a new activity on button click
Intent intent = new Intent(this, ActivityToBeCalled.class);
startActivity(intent);
Intent intent = new Intent(this, ActivityToBeCalled.class);
startActivity(intent);