안드로이드 개발 질문/답변
(글 수 45,052)
안녕하세요 초보 안드로이드 개발자 윤청하입니다.
onPause() 발생시 Home로 인해 발생된 것인지, 다이얼로그에 의해 일부분이 잠시 가려져서 발생된 것인지 구분하고 싶습니다.
깔끔한 방법 아시는분 부탁드립니다!
감사합니다
첨언>
An
example when
onPause()
is
called and not onSaveInstanceState(Bundle)
is
when activity B is launched in front of activity A: the system may avoid
calling onSaveInstanceState(Bundle)
on
activity A if it isn't killed during the lifetime of B since the state of the
user interface of A will stay intact. SDK 문서상의 이 문구를 보고 onSaveInstanceState()로 구분해보려 했으나, 두 경우에 모두 호출됩니다.ㅠㅠ