usagestatsmanager Questions
6
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<UsageStats> getUsag...
Greeley asked 26/3, 2016 at 17:30
2
Solved
I'm working on an android app for tracking daily app usage. The idea is that a user can set daily time limit for any app and a notification will appear within at most 2 minutes after the limit is e...
Prescience asked 8/5, 2020 at 10:54
2
Solved
I'm using UsageStatsManager API to get usage statistics for a certain time interval. All works fine if I use the predefined intervals i.e. INTERVAL_DAILY, INTERVAL_WEEKLY, INTERVAL_MONTHLY, INTERVA...
Q asked 16/6, 2015 at 7:46
3
Solved
I want to get the Usage time of all those applications which i have used today.
As i am getting the those details by dialing *#*#4636#*#*.
But i want these details programmatically in android.
pl...
Quantic asked 28/9, 2015 at 14:46
4
Solved
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:
<uses-permission
android:nam...
Kedge asked 7/3, 2015 at 23:5
7
Solved
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 abo...
Reflexive asked 17/10, 2014 at 19:7
1
My app needs to have Usage Access Permission in order to get information about the current running app on user's phone. I am able to successfully implement it using the following code with the help...
Mattern asked 31/7, 2016 at 17:28
1
Solved
I need to get info about recent apps usage.
Before API 21 it was used getRunningTasks or getRecentTasks to get this info. These methods were deprecated in API 21 according docs.
There is UsageSta...
Hosier asked 5/10, 2016 at 19:39
3
Solved
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 ...
Ma asked 23/10, 2015 at 16:15
0
In Android 6.0 Marshmallow I query for the foreground app with the following code but there was a problem with incoming notifications because it shows foreground app to the app which sends notifica...
Mucosa asked 2/8, 2016 at 5:32
0
I am trying to read when an app was last used using UsageStatsManager Class recently introduced in Android.
But there is a issue. it gives proper result for most of apps. but for some apps for call...
Llamas asked 2/6, 2016 at 13:22
2
I am using this link to produce app usage states. My understanding with chosen interval is that for YEARLY interval, it aggregates data for each YEAR for each package between beginTime and endTime ...
Prompt asked 22/5, 2015 at 1:2
1
© 2022 - 2024 — McMap. All rights reserved.