title: Java android track usage time installed app
body: <p>I need to track usage time of all installed apps, with java, in android OS.
  For example, this app is very very similar: <a href="https://play.google.com/store/apps/details?id=com.agrvaibhav.AppUsageTracking" rel="noreferrer">https://play.google.com/store/apps/details?id=com.agrvaibhav.AppUsageTracking</a></p>
  
  <p>Is there a way to do this?</p>