Page 1 of 1

Determine current app name

Posted: 24 Jun 2016 20:55
by ar234948
Is there a way to determine the name of the currently running app?

Thank you.

Re: Determine current app name

Posted: 25 Jun 2016 07:04
by Bushmills
trigger app task started with "*" in app list will fire whenever an arbitrary app is foregrounded. It provides a variable app_name which can be copied to a global variable, thereby making it available to any flow.
Alternatively, use condition app task running, again with "*" as app name, and convert the returned variable package_name to app name with function getAppName.
Second approach should be more economical in terms of power consumption.