Intent intent2 = new Intent(CalendarView.this, MyDiary.class);
   startActivity(intent2);

 

public void onResume(){
     super.onResume();
     savedDays.clear();
      SavedDay();
     makeCalendardata(iYear, iMonth);
     CalendarImage();
    }

 

이런식으로 onResume 함수를 쓰고 한액티비티에서 다른 액티비티로 넘어가는 startActivity()를 썼을때 엑티비티가

넘어가서 그런지 에러가 납니다. 다른엑티비티에서 일을처리하고 다시 현재엑티비티에서 넘어올때

onResume() 이 되어서 현재 액티비티를 업데이트 시키려고하는데 잘안되네요.

 

다른액티비티가 스택제일위로 가는건 무시하고 엑티비티가 다시 resume 될때만 onResume()함수를 쓰게할수는없을까요?

전 resume될때만 onResume이 쓰이는줄알았는데 다른액티부르는데 갑자기 onResume이 불려지니 황당하네요;;