Answers for "android studio click button to open new activity"

2

how to move from one activity to another in android studio on button click

// also use set onclick listener
 public void next(View view) {
        Intent intent = new Intent(this,Activity2.class);
        startActivity(intent);
   }
Posted by: Guest on June-07-2020
10

intent android open activity

Intent intent = new Intent(this, DisplayMessageActivity.class);
        intent.putExtra(key:,value:);
        startActivity(intent);
Posted by: Guest on May-19-2020
3

android how to start a new activity on button click

Intent intent = new Intent(this, ActivityToBeCalled.class);
startActivity(intent);
Posted by: Guest on August-22-2020

Code answers related to "android studio click button to open new activity"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language