r/tasker • u/unselective-amnesia • Oct 30 '26
What is the most straightforward, efficient way for Tasker to test whether a given app is running and then bring it to the foreground?
I'm using the latest Tasker version 6.7.7-rc under Android 13 that's rooted with the latest APatch.
In certain special cases, I would like to implement the following logic within a Tasker task. This, of course, is just pseudo-code, and I use the term "certain-app" to refer to any given app ...
if ( certain-app is currently running )
then
if ( certain-app is not the current foreground app )
then
cause certain-app to become the current foreground app
endif
endif
I know there is more than one way to do this in Tasker, but I'm looking for the most straightforward way to accomplish this with the very least amount of code that needs to be written in order to implement this logic in a Tasker task.
Thank you very much in advance for thoughts and suggestions.
3
u/DifficultyCrafty7623 Oct 30 '26