Hi,

i am developing application which displays the recently launched
application. I am able to get the list of apps using
ActivityManager.RecentTaskInfo.

Now i need to keep track of "how many times an application is
launched" and "also execution time of an application"?

In spare parts example, this is done. To achieve this they have used:
PkgUsageStats
public PkgUsageStats(String pkgName, int count, long time) {
         packageName = pkgName;
         launchCount = count;
         usageTime = time;
     }


But in the latest android SDK , PkgUsageStats is been replaced by
PackageStats
and it has only:
public PackageStats(PackageStats pStats) {
        packageName = pStats.packageName
        codeSize = pStats.codeSize;
        dataSize = pStats.dataSize;
        cacheSize = pStats.cacheSize;
    }

So is there any other way to get the "launchCount"?
What is the alternative for this function?


Regards,
Shruthi

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to