Hi everyone,
I've been searching for a way to monitor over other apps, specifically check if certain apps have been launched\are running.
From what I could find, ActivityManager seemed like that way to go, using getRunningTasks() or getRunningAppProcess(), but it seems any relevant function has either been deprecated or limited to give information only on the app that's running it.
So it seems kinda impossible to do now (and I read on Stackoverflow people saying as much) but then how are apps such as AppBlock operate? (apps that block other apps\ask for password on entry)
Is there an alternative way for doing this? (Wherever I looked, people offered the exact same solution that is out of date).
I've been searching for a way to monitor over other apps, specifically check if certain apps have been launched\are running.
From what I could find, ActivityManager seemed like that way to go, using getRunningTasks() or getRunningAppProcess(), but it seems any relevant function has either been deprecated or limited to give information only on the app that's running it.
So it seems kinda impossible to do now (and I read on Stackoverflow people saying as much) but then how are apps such as AppBlock operate? (apps that block other apps\ask for password on entry)
Is there an alternative way for doing this? (Wherever I looked, people offered the exact same solution that is out of date).