title: Get Recent and Running application list not processes
body: <p>I tried a lot to get the list of recent and running applications(not processes) but couldn't get it.</p>
  
  <p>I went through all the stackoverflow questions regarding this but the only answer i got about the running processes and recent tasks not the application specific like we can see in Samsung Mobile task manager on long press of home button.</p>
  
  <p>I am able to get the Running processes by this code :</p>
  
  <pre><code>ActivityManager actvityManager = (ActivityManager)
  this.getSystemService( ACTIVITY_SERVICE );
  List&lt;RunningAppProcessInfo&gt; procInfos = actvityManager.getRunningAppProcesses();
  
  for(RunningAppProcessInfo runningProInfo:procInfos){
  
          Log.d("Running Processes", "()()"+runningProInfo.processName);
  }
  </code></pre>
  
  <p>It is giving the package names of all processes but i want only the package names of applications that i have launched(Both Recent and Running).</p>
  
  <p>How can I extract that from Running Application Processes?</p>