[Ask] Counting App on Recent List

Post your questions and help other users.

Moderator: Martin

Post Reply
Diantokam
Posts: 6
Joined: 04 Jul 2015 06:02

[Ask] Counting App on Recent List

Post by Diantokam » 01 Aug 2015 17:21

hi all,

anyone here can help me how to count how much app in recent list?

i'm using command recents() to show all recent app list

just need to count how much app in the list


thank you
Last edited by Diantokam on 02 Aug 2015 01:36, edited 1 time in total.

Diantokam
Posts: 6
Joined: 04 Jul 2015 06:02

Re: Counting

Post by Diantokam » 02 Aug 2015 01:35

any help.... please

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: [Ask] Counting App on Recent List

Post by bogdyro » 02 Aug 2015 05:04

Are you using action control ui to display the recents menu? I don't think there's anyway to count the number of items displayed. What are you trying to accomplish?

Diantokam
Posts: 6
Joined: 04 Jul 2015 06:02

Re: [Ask] Counting App on Recent List

Post by Diantokam » 02 Aug 2015 09:57

i'm trying to clear app list, i need to stop the flow if there is no app on the list, list is empty while flow still running.

i don't know how to create condition so the flow stop after all app on the list is closed.

Thank You.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: [Ask] Counting App on Recent List

Post by Martin » 03 Aug 2015 18:49

Hi,

I'm not sure if there's a way to get the number of apps in the recents list, maybe with trigger UI Event, but it could be tricky.
On a regular Lollipop recents list (Google ROM) you could click the dismiss buttons as long as the click function returns true which means that the button was successfully clicked.
A script in Control UI could look like this (timing might need some adjustments):

Code: Select all

recents();
sleep(2000);
while(click("Dismiss *"))
{
    sleep(1000);
}
Regards,
Martin

Diantokam
Posts: 6
Joined: 04 Jul 2015 06:02

Re: [Ask] Counting App on Recent List

Post by Diantokam » 04 Aug 2015 15:23

Hi Martin,

thank you, i'm using android 4.2.1 Jelly bean, and my display is 5 inch.

and here is my flow, it worked BUT not perfect because i can't set up condition based number of app oj recent list.

Please see it, thank you.

i'm sorry i can't upload xml file
Attachments
flow_Recent_App_Cleaner_20150804_214504.xml.zip
App Recents Cleaner
(1.35 KiB) Downloaded 682 times

Post Reply