.

Post your questions and help other users.

Moderator: Martin

farshadmo368
Posts: 31
Joined: 31 May 2018 09:18

Re: init variable app list

Post by farshadmo368 » 17 Jun 2018 22:24

Hi, I want to start another action after the program list is over,
I want to be done in a Flow
How to start another action after completing the program list?

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

Re: init variable app list

Post by Desmanto » 18 Jun 2018 15:53

Use the false branch of the loop after it stop. (or true branch if you reverse it). Example true branch continue the loop, while the false branch exit the loop and continue to execute another action.
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.

farshadmo368
Posts: 31
Joined: 31 May 2018 09:18

Re: init variable app list

Post by farshadmo368 » 19 Jun 2018 16:03

Tnx ❤️

farshadmo368
Posts: 31
Joined: 31 May 2018 09:18

Re: .

Post by farshadmo368 » 27 Jun 2018 09:56

I want after finish 1
Start 2
After finish 2
Start 3
........
?
Attachments
IMG_20180627_142600.jpg
IMG_20180627_142600.jpg (101.36 KiB) Viewed 16676 times

farshadmo368
Posts: 31
Joined: 31 May 2018 09:18

Re: .

Post by farshadmo368 » 27 Jun 2018 09:58

Use the false branch of the loop after it stop. (or true branch if you reverse it). Example true branch continue the loop, while the false branch exit the loop and continue to execute another action.

NO WORK

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

Re: .

Post by Desmanto » 27 Jun 2018 17:53

Seems like you are using Automagic magic to do some UI test.

Where did the flow fail? It is after the first group? It seems number 1 has two parallel branches that supposed to be mutually exclusive. If there is one element in one of the branch in number 1 halt, other branch will halt too. Probably you should redesign the number 1 to become a single branch logic, just like the other group.
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.

farshadmo368
Posts: 31
Joined: 31 May 2018 09:18

Re: .

Post by farshadmo368 » 28 Jun 2018 08:59

Hi
When group 1 finishes, group two does not start
Attachments
IMG_20180628_132627.jpg
IMG_20180628_132627.jpg (251.71 KiB) Viewed 16628 times

farshadmo368
Posts: 31
Joined: 31 May 2018 09:18

Re: .

Post by farshadmo368 » 29 Jun 2018 09:39

Hello, please reply to the previous question. I created an application list. I want to change the action when it comes to a specific application, Is there a way?

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

Re: .

Post by digitalstone » 29 Jun 2018 10:27

If it'd be up to me to answer anything... i have a hard time understanding what you're trying to do exactly.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

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

Re: .

Post by Desmanto » 29 Jun 2018 18:13

farshadmo368 wrote:Hello, please reply to the previous question. I created an application list. I want to change the action when it comes to a specific application, Is there a way?
When it fail to continue to group 2, what is the error message shown? without error mesage, we never know what have gone wrong.

Judging by the number of elements, i would say that your flow hit Automagic Emergency stop and disabled immediately. The flow probably didn't even finish the first group's loop. Check the log, or the error message.


If you want the flow to behave differently when it comes to specific value (or application), put that application on another list. Example
exclusion = newList(com.android.chrome, com.whatsapp);

Then use expression to check if the current loop app is in the exclusion list, using containsElement(). If yes, then do some special action for those specific application. If no, continue the common loop branch. I can't put the exact code, as I can't see your whole script (probably too long to post here too).
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