In an Android application, how do you start a new activity (GUI) when a button in another activity is clicked, and how do you pass data between these two activities?
Try this simple method.
startActivity(new Intent(MainActivity.this, SecondActivity.class));