当我按下后退按钮时,发生了一件奇怪的事情,相同的Activity
onResume()
方法被调用。
这是否意味着堆栈中有Activity
的多个实例?
有人可以告诉我发生了什么吗?
编辑:
12-27 19:51:44.595: D/IPCThreadState(10777): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x1947378
12-27 19:51:44.624: I/not null recipientlist(10777): show
12-27 19:51:44.624: I/in getconversation for complete mesages(10777): show
12-27 19:51:44.812: D/dalvikvm(10777): GC_EXPLICIT freed 1064K, 17% free 10334K/12359K, paused 2ms+3ms
12-27 19:51:45.606: D/JpgDecHal(10777): JpgDecHal::JpgDecHal
12-27 19:51:45.607: D/skia(10777): The file input width: 102, height: 102, output width: 102, height: 102, format: 6, prefer size: 0, dither: 0
12-27 19:51:45.607: D/JpgDecHal(10777): JpgDecHal::start -> config jpeg path
12-27 19:51:45.607: D/JpgDecHal(10777): Decoder Src Addr:0x19a9100, width/height:[102, 102]
12-27 19:51:45.607: D/JpgDecHal(10777): Decoder Dst Addr:0x415e7450, width/height:[102, 102], format:3
12-27 19:51:45.607: D/JpgDecHal(10777): Decoder Dither:0, RangeDecode:0 [6649455 0 0 0]
12-27 19:51:45.610: D/JpgDecHal(10777): jpeg decoder result:0
12-27 19:51:45.613: D/JpgDecHal(10777): JpgDecHal::~JpgDecHal
12-27 19:51:45.639: D/IPCThreadState(10777): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x18d8178
12-27 19:51:45.642: D/IPCThreadState(10777): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x1947378
12-27 19:51:45.836: D/OpenGLRenderer(10777): Flushing caches (mode 0)
当我按后面
时开始12-27 19:51:48.650: I/not null recipientlist(10777): show
12-27 19:51:48.650: I/in getconversation for complete mesages(10777): show
12-27 19:51:49.103: D/dalvikvm(10777): GC_EXPLICIT freed 587K, 14% free 10675K/12359K, paused 2ms+5ms
12-27 19:51:49.644: D/IPCThreadState(10777): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x18d8178
12-27 19:51:49.647: D/IPCThreadState(10777): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x1947378
12-27 19:51:49.770: D/OpenGLRenderer(10777): Flushing caches (mode 0)
再次按下
12-27 19:51:51.606: I/not null recipientlist(10777): show
12-27 19:51:51.607: I/in getconversation for complete mesages(10777): show
12-27 19:51:52.383: D/dalvikvm(10777): GC_EXPLICIT freed 615K, 13% free 10781K/12359K, paused 1ms+6ms
12-27 19:51:52.511: D/IPCThreadState(10777): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x18d8178
12-27 19:51:52.513: D/IPCThreadState(10777): [DN #5] BR_CLEAR_DEATH_NOTIFICATION_DONE cookie 0x1947378
12-27 19:51:52.631: D/OpenGLRenderer(10777): Flushing caches (mode 0)
12-27 19:51:56.522: D/OpenGLRenderer(10777): Flushing caches (mode 0)
这取决于我通过意图从前一个活动中获取的recipientlist
的大小。如果它的大小为1,后面工作正常,如果大小为2,则需要两次连续按下才能返回对于size = 3的情况,已显示先前的活动作为日志。
和getconversation是我在onResume()中检查列表不为空时调用的方法