본문 바로가기
Programming/Android Java

onNewIntent() 알아보기

by 개Foot/Dog발?! 2014. 8. 24.

URL : http://diyall.tistory.com/786


Activity 를 실행할 때 Intent 를 만들어 StartActivity 를 호출하여 실행하게 됩니다.


그러면 onCreate() 부터 onResume() 을 통해 쭉~ 호출되어 Activity 가 실행되는데..

실행한 Activity 가 foreground 상태에서 Intent 에 Extra 값을 추가하고 StartActivity 를 호출하면 onCraete() 대신에

onNewIntent(Intent intent) 가 호출이 되고 그 다음 onResume() 이 호출이 됨


.....