usage-statistics

Android: get UsageStats per hour

我与影子孤独终老i 提交于 2020-12-29 07:48:27
问题 I use UsageStats feature of Android, but the smallest interval is DAILY INTERVAL . long time = System.currentTimeMillis(); List<UsageStats> appList = manager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, time - DAY_IN_MILLI_SECONDS, time); How can I get UsageStats in an hourly interval? 回答1: All credit goes to this answer. I have learned from that one. How can we collect app usage data for customized time range (e.g. for per 1 hour)? We have to call queryEvents(long begin_time, long end

descriptive statistics in r

为君一笑 提交于 2020-01-15 09:44:50
问题 I was trying to get descriptive stat for my data. I went through many suggestions. However I just want to know if there is any package(s) to perform descriptive stats on the data format provided below. head(mydata) X A1 A2 A3 M1 M2 M3 U1 U2 U3 1 A A A M M M U U U 2 X1 100 200 250 200 230 400 400 100 200 3 X2 600 300 400 300 550 750 800 900 540 4 X3 500 300 200 200 200 100 500 400 600 The data has samples on the column and variables on rows. First row is samples name, second row is groups (A,

iPhone OS current usage statistics (esp. 2.x vs 3.x)

删除回忆录丶 提交于 2020-01-03 15:34:43
问题 I am trying to find out how many of the active iPhone and iPod touch users have at least 3.0 OS installed. I need to know if the percentage running 2.x is still considerable or not really. I tried looking into AdMob stats, and other OS usage stats sites, but I can't get to see iPhone 2.x vs iPhone 3.x 回答1: As of January 2010, shortly before the release of 3.1.3: At around 30,000 downloads (mostly in Austria, some in Germany) for one of our free apps, there are fewer than 5% of devices still

Why UsageStats.mLaunchCount is not accessible in IDE?

断了今生、忘了曾经 提交于 2020-01-03 03:17:04
问题 I have all permissions in place and can get the list of apps, and their usage stats as a list of UsageStats instances. UsageStats has a public field called mLaunchCount, added on API 22 (based on git history of the file). Now I want to access this if the phone is running API 22+, but when I try to use it, the IDE complains Cannot resolve symbol mLaunchCount . If I try to access it via reflection, it works. So basically this does not compile: Log.d("test", "Count: " + usageStat.mLaunchCount);

How to get the stats of total mobile data used in give time period(eg, last month) by all the application in android

我的未来我决定 提交于 2020-01-02 09:03:05
问题 I'm trying to get the mobile data used by all application in previous month( or week) or between a given time period. I want to get the mobile data usage history. I see that android is doing this by default now. Is it possible to get this information by code? 回答1: Is it possible to get this information by code? Not in any documented or supported fashion, at least through Android 4.4. You are welcome to collect this data yourself by periodically examining TrafficStats, though. 回答2: Try this

How to get the stats of total mobile data used in give time period(eg, last month) by all the application in android

試著忘記壹切 提交于 2020-01-02 09:02:34
问题 I'm trying to get the mobile data used by all application in previous month( or week) or between a given time period. I want to get the mobile data usage history. I see that android is doing this by default now. Is it possible to get this information by code? 回答1: Is it possible to get this information by code? Not in any documented or supported fashion, at least through Android 4.4. You are welcome to collect this data yourself by periodically examining TrafficStats, though. 回答2: Try this

Interpretation of Z3 Statistics

我怕爱的太早我们不能终老 提交于 2019-12-30 04:49:08
问题 I obtained several statistics from runs of Z3. I need to understand what these mean. I am rather rusty and non up to date for the recent developments of sat and SMT solving, for this reason I tried to find explanations myself and I might be dead wrong. So my questions are mainly: 1) What do the measures' names mean? 2) If wrong, can you give me pointers to understand better to what they refer to? Other observations are made below and conceptually belong to the two questions above. Thanks in

Check if my application has usage access enabled

北战南征 提交于 2019-12-28 02:51:10
问题 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 to this screen with this Intent: startActivity(new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS)); Now, I want to validate the user enabled my application. I wanted to do so like I validate the user enabled my application to use the

Is android.permission.PACKAGE_USAGE_STATS Only for System Apps?

强颜欢笑 提交于 2019-12-24 11:35:02
问题 I am accessing user stats in the following ways: UsageStatsManager userStatsMgr = (UsageStatsManager)getSystemService("usagestats"); List<UsageStats> userStats = mUsageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_BEST, timeStamp - 1000*200, timeStamp) Seems to work for: android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP But I am not sure whether it will continue to work on newer SDK? I see some warning while using this permission, but those were not

Track multiple moving averages with Apache Commons Math DescriptiveStatistics

风格不统一 提交于 2019-12-24 01:55:15
问题 I am using DescriptiveStatistics to track the moving average of some metrics. I have a thread that submits the metric value every minute, and I track the 10 minute moving average of the metric by using the setWindowSize(10) method on DescriptiveStatistics. This works fine for tracking a single moving average but I actually need to track multiple moving averages, i.e. the 1 minute average, the 5 minute average, and the 10 minute average. Currently I have the following options: Have 3 different