button onclick intent android 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);