title: How to get all running apps with user interface?
body: <p>I am trying to get just the number of running apps that are with UI programmatically.  All I found is the number of all running apps with ActivityManager.</p>
  
  <pre><code>ActivityManager actvityManager = (ActivityManager)
  this.getSystemService( ACTIVITY_SERVICE );
  List&lt;RunningAppProcessInfo&gt; procInfos = actvityManager.getRunningAppProcesses();    
  </code></pre>
  
  <p>but this is a list of all background procceses. I need list of apps from Task Manager.(long press home button, but just number of apps)</p>
  
  <p>Can you help me?</p>
  
  <p>Thanks in advance.</p>