Determine current app name

Post your questions and help other users.

Moderator: Martin

Post Reply
ar234948
Posts: 6
Joined: 01 Jun 2016 21:15

Determine current app name

Post by ar234948 » 24 Jun 2016 20:55

Is there a way to determine the name of the currently running app?

Thank you.

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Determine current app name

Post by Bushmills » 25 Jun 2016 07:04

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.

Post Reply