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
[Ask] Counting App on Recent List
Moderator: Martin
[Ask] Counting App on Recent List
Last edited by Diantokam on 02 Aug 2015 01:36, edited 1 time in total.
Re: [Ask] Counting App on Recent List
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?
Re: [Ask] Counting App on Recent List
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.
i don't know how to create condition so the flow stop after all app on the list is closed.
Thank You.
Re: [Ask] Counting App on Recent List
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):
Regards,
Martin
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);
}
Martin
Re: [Ask] Counting App on Recent List
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
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 683 times