android - onResume() isn't triggering on TabHost items switching -


i have tabhost 2 tabs in it. first time switch second tab onresume() method of second's tab's activity invoked. have alertdialog shown , after disappears 'onresume()' method isn't called wait it. presume invocation of 'alertdialog' triggers 'onpause()' method , 'onresume()' should called before 'activity' shown , ready interaction user. in face 'onpause()' isn't called when switch first tab activity.

can advice why 'onpause()' , 'onresume()' methods aren't called , methods called after showing 'alertdialog' or switching between tabs?

i presume invocation of 'alertdialog' triggers 'onpause()' method , 'onresume()' should called before 'activity' shown , ready interaction user

alertdialog not affect activity's life cycle.

check out activity's life cycle flow chart here.

when switching between tabs, if want call method why don't use tabchanged listener


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -