How to get a list of recent apps?

edgeryder1000

Member
Licensed User
Longtime User
I'm trying to make a widget that displays the last 4 apps you have used. So I need to be able to get the package names of recently used apps and be able to get their icons. If anyone can help with getting this list please reply. Thx
 
Top