deleted super.onResume() and super.onPause() because they are naturally
inherited by "extends Activity"