Android: Switch into another activity

To switch into another activity, the method we use is startActivity().

This is what starts another Android activity:

        Intent i = new Intent(this, NameOfActivity.class);

Replace NameOfActivity with the name of any activity you’d like to switch into.

Related Posts:

Posts that may be related to "Android: Switch into another activity":


A Filipino programmer and baker. When I have time to spare, I blog, play video games, watch series (usually anime), cook dishes, draw, or spend a little time with pets. When I have the rare luxury of time, I get to travel and record song covers too! Running small-time online dessert shops Cookies PH and Catzie's Cakery.

Leave a Reply

Your email address will not be published. Required fields are marked *