To switch into another activity, the method we use is startActivity(). This is what starts another Android activity:
1 2 |
Intent i = new Intent(this, NameOfActivity.class); startActivity(i); |
Replace NameOfActivity with the name of any activity you’d like to switch into.