Code example for FragmentActivity

Methods: isFinishing, onPause