0

我有活动 A,它创建列表视图并具有onResume更新适配器的操作。

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

onResume我也有活动 B。当 B 被破坏或back从活动 B中按下时,我如何调用 A's ?

4

1 回答 1

5

如果恢复的 Activity 是 A,它将调用:

例如:

您正在从 A 导航到 B:

A is onPause:
B is onCreate -> onResume. you do your work on B and then finish() it
A in onResume
于 2013-06-10T08:27:55.320 回答