title: How to track app usage time programmatically in android?
body: <p>I want to know how much time user is using my app . So whenever he opens my app I want to know time and whenever he close app i want to know time. When user will close app i want to send usage time to server. How can i track usage time in android ?</p>