title: how to detect when user launches anapplication on an Android device
body: <p>I am trying to develop an application that detect launch of each application which are installed on device.I want to develop same scenario like <a href="https://stackoverflow.com/questions/3290936/android-detect-when-other-apps-are-launched">this.</a> </p>
  
  <p>Accroding to it logcat supports only below 4.0(ICS) version and my requirement is for above ICS version.I have seen many application on play store like<a href="https://play.google.com/store/apps/details?id=com.thinkyeah.smartlockfree&amp;feature=nav_other#?t=W251bGwsMSwxLDYsImNvbS50aGlua3llYWguc21hcnRsb2NrZnJlZSJd" rel="nofollow noreferrer">Smart appLock</a>.How to create this kind of application which supports all version of android from 2.2 onwards.</p>