Detect if app is opened in foreground or background

omexlu

Member
Android 10.

Because I have a macro that open a app if a Bluetooth device is connected, but I want to skip that step if the app is already open. Because open another instance of already opened app, crashs the app.

Thanks in advance.
 
Top