Questions tagged [usage-statistics]

Questions about how to gather, manage or deal with data usage statistics of any software. Usage statistics may include button and menus clicks, memory usage, preferences, features most used, etc... Usually all data are anonymous information.

382 questions
63
votes
7 answers

How to use UsageStatsManager?

Background Google has deprecated the function "getRecentTasks" of "ActivityManager" class. Now all it does is to get the list of apps that the current app has opened. I've even written a post about it here on StackOverflow, but I noticed it's…
46
votes
4 answers

How to check if "android.permission.PACKAGE_USAGE_STATS" permission is given?

Background I'm trying to get app-launched statistics, and on Lollipop it's possible by using the UsageStatsManager class, as such (original post here): manifest:
44
votes
7 answers

How can I find the data usage on a per-application basis on Android?

I am trying to find out the data usage on Android on a per-application basis. Something like Android Data Usage Apps and Quota / Cap Monitor Widgets: never get charged extra for data or get capped again!. I looked at Stack Overflow question How to…
yuvi
  • 1,019
  • 2
  • 14
  • 21
42
votes
6 answers

How to create a Service which continuously monitors app usage information?

Problem at Hand: I have to create a Service which runs continuously. This service monitors 5 apps say 5 android games installed on your phone. This service needs to get the information of: 1. How many times is the game opened and run? 2. For how…
D'yer Mak'er
  • 1,632
  • 5
  • 24
  • 47
40
votes
1 answer

Android Usage Access for Android 5 Samsung devices

As you might know, since Android 5 was launched, accessing the recent tasks (usage stats) of your device requires the user to enable this feature manually (Settings->Security->Usage Access). My app checks if the device uses Android 5, and if so,…
31
votes
10 answers

Check if my application has usage access enabled

I'm using the new UsageStatsManager API to get current foreground application in Android 5.0 Lollipop. In order to use this API, the user must enable the application in the Settings->Security->Apps with usage access screen. I send the user directly…
Lior Iluz
  • 26,213
  • 16
  • 65
  • 114
31
votes
3 answers

Find out usage statistics of MySQL indices?

Is it possible to find out how often an index of a MySQL table was used? I have several indices for a table and I'd like to find out, if there are indice which are not used by MySQL.
R_User
  • 10,682
  • 25
  • 79
  • 120
25
votes
3 answers

How to Track App Usage in Android? How to detect when an activity is launched?

I need to track app usage in Android like how AppUsage does it (i.e. track the number of app launches, and time spent using each). What I plan on doing is recording the start time when an app is launched, and then getting the end time when an app is…
sofiaguyang
  • 1,123
  • 1
  • 14
  • 21
22
votes
3 answers

Android 6.0 Marshmallow UsageStatsManager issue when trying to retrieve foreground app

whenever I try to query the Usage Stats of the UsageStatsManager I can correctly get the last running app. However, if I pull down the status bar and there is a new notification, the last used app (based on UsageStats) will change to that of the…
fcdimitr
  • 528
  • 3
  • 16
21
votes
5 answers

Android: UsageStatsManager not returning correct daily results

I'm attempting to query UsageStats from UsageStatsManager, with the aim of returning all app packages that were used daily and for how long. The Code: public static List getUsageStatsList(Context context){ UsageStatsManager usm =…
19
votes
3 answers

UI usage statistic gathering library for .NET

Can you suggest a library I could use to instrument my .NET desktop applications to collect the UI usage information from users - how and when they move the mouse, navigate menus, click buttons, work with combo and list boxes, etc. So after each…
Mac
18
votes
3 answers

Data on number of users of each version of Mac OS X?

Is there publicly available data somewhere with estimates on the number of users of each Mac OS X version? Particularly for the major releases (10.6.* Snow Leopard, 10.5.* Leopard, ...)? I am writing a new application and am wondering whether it's…
Rinzwind
  • 1,173
  • 11
  • 23
18
votes
4 answers

How do I programmatically show data usage of all applications?

On Android 4.0 onwards we have data usage control options in the phone. Please check the attached screen shot for further understanding. http://developer.android.com/about/versions/android-4.0-highlights.html Now I have some requirement to check…
Kiran_b
  • 363
  • 1
  • 5
  • 19
17
votes
3 answers

how to get the battery usage details of installed apps?

Using this code, I can find the battery level of the phone: int level = battery.getIntExtra(BatteryManager.EXTRA_LEVEL, -1); int scale = battery.getIntExtra(BatteryManager.EXTRA_SCALE, -1); float percent = (level / (float)scale) * 100; But how do I…
15
votes
2 answers

Interpretation of "stat_summary = mean_cl_boot" at ggplot2?

a perhaps simple question I tried to make an errorgraph like the one shown in page 532 of Field's "Discovering Statistics Using R". The code can be found here http://www.sagepub.com/dsur/study/DSUR%20R%20Script%20Files/Chapter%2012%20DSUR%20GLM3.R…
Pulse
  • 867
  • 5
  • 12
  • 19
1
2 3
25 26