[android-developers] Usage Statistics

2011-05-11 Thread Edmund
Hi,

I was wondering what type of services exist to track usage and what
type of usage data it has available. For example, if I wanted to know
how many times a certain APK was launched. How long it was used for.
And also, if I wanted to know details about how the APK was being used
such as how many times they played a certain music track in a music
player app or passed a certain level in a game, can I inject some code
into the APK to register this data? I believe I saw an example of this
at the Google I/O Extended 2011. However, I was wondering about
details like where can I retrieve this from and is it centralized.
Like can one APK retrieve this data that is written by all other
APKs.

Thanks,
--Edmund Chang
chang.edm...@gmail.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Usage Statistics

2011-05-11 Thread TreKing
On Wed, May 11, 2011 at 8:01 PM, Edmund chang.edm...@gmail.com wrote:

 For example, if I wanted to know how many times a certain APK was launched.
 How long it was used for. And also, if I wanted to know details about how
 the APK was being used such as how many times they played a certain music
 track in a music player app or passed a certain level in a game, can I
 inject some code into the APK to register this data?


http://code.google.com/mobile/analytics/docs/android/
http://www.flurry.com/

I was wondering about details like where can I retrieve this from and is it
 centralized.
 Like can one APK retrieve this data that is written by all other APKs.


I'm not really sure what you're asking.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Usage Statistics

2011-05-11 Thread Marc Lester Tan
Take a look at UsageStatsService.java

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/am/UsageStatsService.java;h=6e8f24823efe88ab649ab5e6ddb9a49e69601bca;hb=HEAD

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/am/UsageStatsService.java;h=6e8f24823efe88ab649ab5e6ddb9a49e69601bca;hb=HEADIt
monitors all the application resume/pause state and logs into files.

and check how the settings app is using it here:

http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=blob;f=src/com/android/settings/UsageStats.java;h=f67eeec4dd91c4ae5d31c487c61746fe21c02420;hb=HEAD

Not sure though if you can use it in your app.


On Thu, May 12, 2011 at 10:29 AM, TreKing treking...@gmail.com wrote:

 On Wed, May 11, 2011 at 8:01 PM, Edmund chang.edm...@gmail.com wrote:

 For example, if I wanted to know how many times a certain APK was
 launched. How long it was used for. And also, if I wanted to know details
 about how the APK was being used such as how many times they played a
 certain music track in a music player app or passed a certain level in a
 game, can I inject some code into the APK to register this data?


 http://code.google.com/mobile/analytics/docs/android/
 http://www.flurry.com/

 I was wondering about details like where can I retrieve this from and is it
 centralized.
 Like can one APK retrieve this data that is written by all other APKs.


 I'm not really sure what you're asking.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Cheers,

*Marc Lester Tan *

http://www.appalert.co
http://moonphase.pendukosoftware.com
http://blogs.marctan.com

http://www.proudlypinoy.org/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en