Error: Application has stopped

You are not switching screens correctly.
Use this method to switch screens: