Want
to know which app was used last time in your phone is pretty much easy
by moving to recent app history or app switcher like this…
But what if someone has cleared it….don't worry I'm with you.
Open your phone dialer and press *#*#4636#*#*
It will open up something like this.
Click on Usage Statistics.
Something like this will open up.
Move to Sort by - dropdown menu.
click on last time used.
All done now see the statistics with full details.
I was using quora last time !
( Works on snapdragon chipsets only. Press. *#*#4636#*#* on your phone to check it now.)
This code isn't limited to this use only.
It has too many handy features also.
Look this. .
Or this..
Or this..
Hope you'll have your hands on this now.