Using the wrong method to get the activity