Hello, How can I detect if an app is in foreground or working on background? Thanks in advance.
O omexlu Member Mar 4, 2021 #1 Hello, How can I detect if an app is in foreground or working on background? Thanks in advance.
O omexlu Member Mar 4, 2021 #3 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.
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.
P Pseudocyclic Well-known member Mar 4, 2021 #4 On Android 10 you can detect if an app is open in the foreground, but not whether it is alive in the background or not.
On Android 10 you can detect if an app is open in the foreground, but not whether it is alive in the background or not.
Jacob L Moderator (Lawsonator) Mar 5, 2021 #6 If you kill all processes and it is in foreground then surely that means it is foreground.