How to get recently opened application name in android?
<p>In my application i want to get the opened application name in my application</p>

<p>I tried some code but all of them retrieving only running application but I need only the application that i opened i.e If i opened facebook application means i want only that name</p>

<p>How to do this</p>
