안녕하세요.

app 개발 중에
질문이 있습니다.

app 실행 중에 전화가 올때 
public class MyPhoneStateListener extends PhoneStateListener { 
        @Override 
        public void onCallStateChanged(int state,String incomingNumber){ 
         if (state == TelephonyManager.CALL_STATE_IDLE) {
       
         }
         else if (state == TelephonyManager.CALL_STATE_RINGING) {
       
         }
         else if (state == TelephonyManager.CALL_STATE_OFFHOOK) {
       
         }
        } 
    }  

위와 같이 하는데요...전화를 끈었을때 callback이 들어오지 않습니다.
사용자가 전화 끈었다는것은 어떻게 알죵?...

하고 싶은건 app 실행중에 전화가 오고 끈었을때 
그 끈었을때 app이 다시 실행할때 그 시점이 알고 싶은 것입니다.

참고로 onSaveInstanceState, onRestoreInstanceState 이것으로 테스트 해밨는데..
이상하게 전화가 와서 화면 전환이 되면 onSaveInstanceState 이 함수가 call이 되는데
전화를 끈고 app이 다시 실행될때  onRestoreInstanceState 이 함수가 호출이 되지 않더군요...답답합니다 ㅠ

고수님 답변 부탁드려요~^^