Android code to demonstrate the process of switching between two activities