How to close Recents panel or Notification drawer when launching an application in Android?
<p>When recents panel is open and if I launch my application, it is always behind the recents panel (Recents panel has focus). For some reason, my app launch doesn't dismiss recents panel. I checked Alarm Dialog behavior and whenever alarm dialog pops up, recents/notification panel is dismissed. I want similar behavior for my app too. Whenever my app launches, it should dismiss recents panel or notification drawer if open and focus should go to my app. Is there any flag or permission which I need to set in my application for it to work ? </p>

<p>Thanks
Abhi</p>
