Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old January 24th, 2012, 11:37 AM   #1 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Usage statistcs

Hi everyone,

This is my first post, so hello =P

I'd like to know if there is any way to know the usage statistics of the apps without running a background service to count it. I mean I'd like to create a log with the top 10 apps used on a period of time (like a day) and the usage time of each.

Thk.

owlRJ is offline  
Reply With Quote
Sponsors
Old January 24th, 2012, 02:17 PM   #2 (permalink)
Senior Member
 
Join Date: Jul 2010
Posts: 977
 
Device(s): Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Thanks: 52
Thanked 199 Times in 144 Posts
Default

No. If you think about it, if there is no service running, how would you gather the required data? It would be like asking a web browser to display a page without actually starting the browser application--not possible.
jonbonazza is online now  
Reply With Quote
Old January 24th, 2012, 07:32 PM   #3 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I see..
I thought it may be recovered from some kind of OS service..
but thx anyway.
owlRJ is offline  
Reply With Quote
Old January 25th, 2012, 05:50 PM   #4 (permalink)
Senior Member
 
Join Date: Jul 2010
Posts: 977
 
Device(s): Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Thanks: 52
Thanked 199 Times in 144 Posts
Default

It very well may be, but unless the OS service explicitly sends the data to your app or broadcasts the data, then there is no way to gather the data. Unfortunately, neither of these are the case.
jonbonazza is online now  
Reply With Quote
Old January 30th, 2012, 10:15 AM   #5 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, ok, I give up! =P
So, anyone know how can I do this with a service running in background ?

I need an app exactly like this one:
AppUsage - Aplicação Android no AppBrain

thx.
owlRJ is offline  
Reply With Quote
Old January 30th, 2012, 04:13 PM   #6 (permalink)
Senior Member
 
Join Date: Jul 2010
Posts: 977
 
Device(s): Samsung Galaxy S II, HTC Evo 4G, Amazon Kindle Fire
Thanks: 52
Thanked 199 Times in 144 Posts
Default

You will need to create a service that gathers the statistics and sends them off to a database somewhere on the internet. Once in the database, you will need to write some other application that can query the database for the info you want.
jonbonazza is online now  
Reply With Quote
Old January 31st, 2012, 08:10 AM   #7 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yep!
but what I realy don't know is how to get this information (like some kind of signal when a new app start). I mean I can't found on the internet any information about how to implement it.
Could you help me with it ?

thk you a lot !
owlRJ is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 12:08 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo