Detect a closed app

I'm developing an app which opens other apps which contain different screens that are closed at some point. I need to know when one of the apps is closed to start the second one. I was thinking on a system that opened the first app and then waited until it was closed. The way I was thinking it would detect it is that when the screen closes it would retourn to the project's main screen again, and so once the primary screen was visible to the user, open the next app. I was wondering if someone knew how to detect if the main screen was the visible screen.

Could be that Activity Lifecycle is what you need ?


Tools Extension by @Taifun


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.