- Jun 6, 2020
- 11,559
- 4,422
EDIT: I believe I know what's happening now but still not clear on a solution.
Lets say the user starts the app from the home screen icon. Main activity loads. User then navigates to Active B then to Activity C.
User then hits the home button and performs some unrelated task. When wanting to return to my app they tap the icon on the home screen again.
This does not resume the app. It relaunches the Main activity. IMO it should resume the app with the last activity the user was on but it doesn't.
If the user resumed the app from the Recent apps menu it resumes as expected.
------------------------------------------------------------------------------------------
I'm getting nowhere trying to track this down.
What would cause the Main activity to be randomly recreated? I'm not calling the Main activity anywhere in code.
You can see in my log:
08/09/2022 07:20:36.524 - In MessageSender.Service_Destroy
08/09/2022 07:29:16.011 - In Main Activity_Create <- Main...
Lets say the user starts the app from the home screen icon. Main activity loads. User then navigates to Active B then to Activity C.
User then hits the home button and performs some unrelated task. When wanting to return to my app they tap the icon on the home screen again.
This does not resume the app. It relaunches the Main activity. IMO it should resume the app with the last activity the user was on but it doesn't.
If the user resumed the app from the Recent apps menu it resumes as expected.
------------------------------------------------------------------------------------------
I'm getting nowhere trying to track this down.
What would cause the Main activity to be randomly recreated? I'm not calling the Main activity anywhere in code.
You can see in my log:
08/09/2022 07:20:36.524 - In MessageSender.Service_Destroy
08/09/2022 07:29:16.011 - In Main Activity_Create <- Main...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید