so my app has two tabs
tab 1 is a login page then
tab 2 is a user details
the user needs to loginfrom tab 1 then only details would load from tab 2 so if the user didn't login and goes to tab 2, an alertdialog would show the problem is, after going back to tab 1 and if the user does not login again prior to tab 2, the alertdialog would not show again. I'm not sure if I should use onRestart or onPause or something..