This repo has the code that I type while following this proper repository http://www.androidhive.info/2011/08/how-to-switch-between-activities-in-android/