Adds a second activity and defines an intent.