lifecycle callback

    Life cycle 생명 주기

    Life cycle 생명 주기

    Activity Lifecycle 활동(activity)의 모든 인스턴스는 생명주기를 갖는다. 생명주기 동안의 활동의 상태는 총 4가지이다. 실행 재개 일시 중지 중단 존재하지 않음 = 소멸 resumed paused stopped nonexistent = destroyed 상태 메모리 있음? 사용자에게 보임? Foreground에서 실행? nonexistent no no no stopped yes no no paused yes yes(partialy) no resumed yes yes yes 존재하지 않음 Nonexistent onCreate() ⏬ onDestroy() ⏫ 중단 Stopped onStart() ⏬ onStop() ⏫ 일시 중지 Paused onResume() ⏬ onPause() ⏫ ..