How to log each application activity in android?
<p>Hello I want to log application activity information on my android phone, I just need 2 things, the start time of the application and the end time of the application.</p>

<p>I just want to know for how much time a particular application/activity was running. </p>

<p>Say for example a user launched music player and after some time closed it? I just want to know how long the music player opened, or if he is talking on phone how long that activity to took after finishing?</p>

<p>My application will run as service, logging all this information is sqlLite. Once my application started it should log all the above information for each activity triggered there after.</p>

<p>Please let me know how can i do this??</p>

<p>I know about logcat but i want to know how they log this things or how can i code something similar??</p>

<p>Thanks
Pranay</p>
