Get time usage for all applications in android
<ul>
<li>Please note - I want the code/logic not any apps</li>
</ul>

<p>I was trying a lot for some days to get the usage time for all applications in android , but i was not able to get it .I was able to get the list of all application installed in android but was not able to track their individual timings .</p>

<p>Firstly I thought I can use the logic of getting the start time and end time of each application, but i was not able to do so .So can anybody let me know how to get the start time and end time for each application (based on their UID's).</p>

<p>But my main problem is getting the usage time .So if you have any other logic then please let me know (with some sample code would be must appreciated).</p>
