On Wed, Jun 27, 2012 at 9:44 AM, Narendra Singh Rathore <[email protected]> wrote: > > > On Wed, Jun 27, 2012 at 7:01 PM, Kristopher Micinski > <[email protected]> wrote: >> >> As we said, you can poll it, but it's not recommended. Why do you >> need to do this? > > > > Let me clarify you about my requirement. > I actually want to monitor all the apps stored in the device, and retrieve > their information (like how many times app is opened or closed. All that > process of maintaining the record will start, when I first time install my > app (which will show me details of other apps). > > For this reason, I wanted that as soon as any device app (system's app as > well as user's apps), is launched or closed, the database should be updated > like --- > App A started: 2 times and stopped 1 time total usage: 15 hrs, App B started > 3 times stopped: 3 times, total usage: 7 hrs > > And in my own application, I can retrieve that information. > > I wish, my problem is somewhat clear to you. > >
But *why* do you want to do this. To display it to the user? kris -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

