Hello
Someone knows how can I check if an App is running in the background or foreground?
I know the package name of that App, unfortunately is not my App is a third party app that my App depends on it and my app only can continue if that app is running, I can not start because it restart by it self.
I would like to intercept when this third party app is running, popup my app and when this app closed for any reason my App will save my app data and close it too.
Anyone have a hint?
Someone knows how can I check if an App is running in the background or foreground?
I know the package name of that App, unfortunately is not my App is a third party app that my App depends on it and my app only can continue if that app is running, I can not start because it restart by it self.
I would like to intercept when this third party app is running, popup my app and when this app closed for any reason my App will save my app data and close it too.
Anyone have a hint?