Class 2 See MainActivity See SecondActivity, you can see a new way to set Click Listerners. See AndroidManifest for activity declarations. Bee awere that i added an Utils class for handling the sharedPreferences.