How can I remove app from “recent item” list?

Post your questions and help other users.

Moderator: Martin

Post Reply
Econdoc
Posts: 153
Joined: 28 May 2016 20:06

How can I remove app from “recent item” list?

Post by Econdoc » 27 May 2018 14:05

I use Launch App to access android location settings. After the flow completes, the location settings screen remains on the recent item list. Is there a way to remove the app when my flow completes?

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

Re: How can I remove app from “recent item” list?

Post by Martin » 27 May 2018 18:54

Hi,

Removing an item is difficult once it's there. You could use an action Start Activity instead of Launch App since it has some more options, e.g. to avoid that the settings activity is added to the recent items list.
In action Start Activity enable Explicit Component and specify package com.android.settings and class com.android.settings.Settings$LocationSettingsActivity (use [...]-button to pick from list) and then edit the Flag List to include FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS. This should ensure that the location settings activity is not added to the recent item list when the flow is used to open the settings page.

Regards,
Martin

Econdoc
Posts: 153
Joined: 28 May 2016 20:06

Re: How can I remove app from “recent item” list?

Post by Econdoc » 27 May 2018 19:15

Wow! That worked perfectly. Thanks, Martin.
So many wonderful hidden treasures in Automagic. I need a good map to find them all. :lol:

Post Reply