App removed from recent apps list

fmcpma

Member
Hello all.

I just wanted to know whether there is a way to know when an app is removed from the recent apps list by the system, as when it "determines" the app is no longer needed. Note I am not talking about when the user removes the entry themselves manually.

Thanks for any answers.
 
Last edited:

Jacob L

Moderator (Lawsonator)
Search MacroDroid store for 14746, it triggers when an app is removed from recents. All you need to do is detect if the recents screen is displayed, you can use the Logcat trigger for that
 

fmcpma

Member
You went to the trouble of writing a whole new macro just to answer my question? Thanks a lot!

But I can't understand all that text manipulation. Does it in the end provide the name of the app removed from the list?

Also, I see you're looking for killed apps. Is this the same as removing an app from the recent list? I thought those were separate system actions. Like, it could kill an app and keep it in the list; or remove it from the list but keep it running.
 
Last edited:

Endercraft

Moderator (& bug finder :D)
You went to the trouble of writing a whole new macro just to answer my question? Thanks a lot!

But I can't understand all that text manipulation. Does it in the end provide the name of the app removed from the list?

Also, I see you're looking for killed apps. Is this the same as removing an app from the recent list? I thought those were separate system actions. Like, it could kill an app and keep it in the list; or remove it from the list but keep it running.
Personally on my device removing from recents kills the app, apparently because of some bug.
 

Jacob L

Moderator (Lawsonator)
But I can't understand all that text manipulation. Does it in the end provide the name of the app removed from the list?
It extracts the package name. I can give you the package name to app name when I find it if you want
 

fmcpma

Member
That'd be great, thank you. That way I'll be able to fire a notification when Android commits murder and know who the victim was.

I then guess that, using that logcat thing, one can find all sorts of system events and dream up hundreds of different triggers…
 

fmcpma

Member
Golly! So we have two triggers to build millions other triggers from, is that it? Logcat Message and Intent Received. Is there any overlapping (or basic differences) between them? Because Intent Received seems preferable, since it does not need the ADB trick to work.
 

Endercraft

Moderator (& bug finder :D)
Golly! So we have two triggers to build millions other triggers from, is that it? Logcat Message and Intent Received. Is there any overlapping (or basic differences) between them? Because Intent Received seems preferable, since it does not need the ADB trick to work.
Logcat has much more possibilitys, but intent received is easier. You can use them to communicate and easily transfer values between macros.
 
Top