문제

I have activity A which creates list view and has onResume action to update adapter.

protected void onResume() {
        super.onResume();
        ma.notifyDataSetChanged();
        Log.d("resumed","true");
        }

Also I have activity B. How can I call A's onResume, when B is destroyed or it pressed back from activity B?

도움이 되었습니까?

해결책

It will called if the resumed Activity is A:

For instance:

You are navigating from A to B:

A is onPause:
B is onCreate -> onResume. you do your work on B and then finish() it
A in onResume
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top