update android onPause/onResume