0

当我按下后退按钮时发生了一件奇怪的事情,同样ActivityonResume()方法被调用了。

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,则返回需要两次连续按下才能返回上一个活动,因为已显示日志对于大小 = 3 的情况。getconversation 是当我签入我的 onResume() 时调用的方法,该列表不为空

4

0 回答 0