title: How to find the currently running applications programmatically in Android?
body: <p>I am very new to Android. I am working on application that must get the information about the applications currently running on foreground. </p>
  
  <p>It means if user launches any applications, my application should capture the launched application information, by the time my application shouldn't interrupt launched application.</p>
  
  <p>Example: If user launches browser application my application should print browser application information on log.  </p>
  
  <p>How can I do this?</p>