I'm searching for a way to clear the recent apps when I lock or unlock my device (Nexus 5, SlimKat Rom on 4.4.2). Does anyone know a solution (via App, Tasker, whatever) how to do this? The only way I found was via shell commands which emulate taps on the recents and clear all button. But that's ugly and would be annoying with the time. I hope there's some way to do this in the background..
Thanks in advance!