Corrected getIntent placement to onResume