Android O activity stack gets reset

60 views Asked by At

First of all I want to say that I am not sure that this is Android O issue, but I have only seen it on an Android O device.

My app has various activities in the stack and the top-most activity is started with LaunchMode: singleTop. This activity starts a different app, which starts the browser (eg. chrome app), which in the end returns to my activity.

my app with Activity X => another app => chrome app => my app with Activity X

Everything went ok until a while ago when I saw that somehow my activity stack gets cleared on a device with Android O, when the user comes back to my app. I think that my task (app) gets removed when the user gets to the browser.

I have checked on some other phone with Android 5.1.1 and it works as expected. The second app has the same version on both phones.

My question is: How can I stop the clear of my activity stack? Is this a change in Android O?

0

There are 0 answers