Android: Make a Button Switch Activities

Date: 2013-11-19 |

DISCLOSURE: If you buy through affiliate links, I may earn a small commission. (disclosures)

This is a short tutorial on how to give a button the functionality to switch from one activity to another when it is pressed in Android.  For this tutorial, we assume you have already created the button and that you are coding in Java.  The example below was tested in Eclipse, many factors such as alternative environments and Android OS levels may effect the success of implementation.

Here’s a code snippet:

(https://gist.github.com/SIRHAMY/7551444)

Text after link.

Want more like this?

The best way to support my work is to like / comment / share for the algorithm and subscribe for future updates.