android studio open new activity on button click code example
Example: intent android open activity
Intent intent = new Intent(this, DisplayMessageActivity.class);
intent.putExtra(key:,value:);
startActivity(intent);
Intent intent = new Intent(this, DisplayMessageActivity.class);
intent.putExtra(key:,value:);
startActivity(intent);