Launch Shortcut or execute

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Launch Shortcut or execute

Post by Rafi4 » 30 Aug 2018 07:42

Hi
I want to know what's the difference between launch shortcut and execute flows? which is better?
Which consume more battery. Because I want to execute some flows with overlay widget
Thanks in advance
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Launch Shortcut or execute

Post by digitalstone » 30 Aug 2018 22:21

Both do different things.
None of them consume significant energy... they just trigger something else.

The shortcut starts a particular activity/part of an app.
Execute Flow executes a flow or flows from within another flow.

Apples and oranges.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Launch Shortcut or execute

Post by Desmanto » 02 Sep 2018 16:57

Depends on the need. Both doesn't consume battery as pointed out by digitalstone. But there are differences

Shortcut
1. You can add them to home screen or link to other app that support shortcut/intent
2. The flow require the trigger shortcut to be assigned. It can have other triggers too, but at least one of them must be shortcut
3. No parameter or existing variable will be passed
4. You have no option to long press, double tap or any swipe
5. It doesn't support to change its own icon if placed on home screen
6. Require minimum setup, as you don't have much option.

Execute flow
1. Only can be used by other automagic flow/widget, can't accessed by other app
2. The flow doesn't require any specific trigger. It can have no trigger at all, or any number of triggers.
3. all parameter from the existing caller flow will be passed to the executed flow.
Example : Flow A using trigger "App Task Started", and in the action call Flow B. When executing flow B, if you query value of trigger, it will be "App Task Started" (which belongs to Flow A)
4. Using with widget, you can have option long press, double and swipe if you use the widget as overlay (not as a usual widget in home screen)
5. Using with widget, you can have some action in the flow (script) to change the icon or color or any element of the widget.
Example : You press once, it will become green. Press the second time, it become red.
6. Require more setup when using with widget. You need to modify the widget to suit your need too.

If you need feedback or extra info, use widget coupled with execute flow. But if you just need some way to execute your flow and you have another way to tell the flow is running/executing properly (example notification or toast message), then just use shortcut.

For me, I use shortcut triggers the most. In fact, it is the most used triggers in all of my flows, I have 82 of them, representing more than 1/3 of my triggers. I still use widget + execute flow, but only when it is needed.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply