Android Question Switching back to last Activity instead of restarting main

jnjft

Member
Licensed User
Longtime User
Hello everybody!
I couldn't find an answer in the forum, so here's my problem:

I am using several shortcuts on my bluetooth keyboard for starting apps. With the same shortcuts I can switch between these apps without them changing their state or restarting. Now, when I try this with my app, there's a Log "Killing previous instance (main)" and my app shows up with the restarted Activity Main. When I then turn to the Activity I launched before, it is still in the same state as before, I mean, if I have put data in a TextEdit view before I started another app it is still there. But my app always comes up with Main - is there a way to prevent this and return to the previously launched Activity instead?

Thanks and best regards
Johann
 

jnjft

Member
Licensed User
Longtime User
Thank you, Erel, I've already seen this mentioned in the forum. Just thought - or say, hoped :) - my problem might be something trivial.
So I'll try with StateManager now - thanks again!
 
Upvote 0
Top