Verified
Status Update
Comments
mi...@gmail.com <mi...@gmail.com> #3
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Android build
Which Android build are you using? (e.g. OPP1.170223.012)
Device used
Which device did you use to reproduce this issue?
Steps to reproduce
What steps are needed to reproduce this issue?
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:https://developer.android.com/studio/debug/bug-report#bugreportdevice
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Screen capture of the issue
Press the volume down and power buttons simultaneously. The image will appear in your gallery. Attach the screenshot file to this issue.
Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.
Android build
Which Android build are you using? (e.g. OPP1.170223.012)
Device used
Which device did you use to reproduce this issue?
Steps to reproduce
What steps are needed to reproduce this issue?
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Android bug report (to be captured after reproducing the issue)
For steps to capture a bug report, please refer:
Alternate method
Navigate to “Developer options”, ensure “USB debugging” is enabled, then enable “Bug report shortcut”. Capture bug report by holding the power button and selecting the “Take bug report” option.
Screen capture of the issue
Press the volume down and power buttons simultaneously. The image will appear in your gallery. Attach the screenshot file to this issue.
Note: Please upload the files to google drive and share the folder to android-bugreport@google.com, then share the link here.
mi...@gmail.com <mi...@gmail.com> #4
Please share the details requested in comment #3 , to proceed further with the bug.
ja...@google.com <ja...@google.com> #5
Android build:
Happened on every Android version I tested this, i.e. API 21 to API 29
Device used:
Pixel 2 XL as well as several emulated devices in Android Studio
Steps to reproduce:
See original post
Frequency:
Always, i.e. 100%
Android bug report:
N.A.
Screen capture of the issue
N.A.
Happened on every Android version I tested this, i.e. API 21 to API 29
Device used:
Pixel 2 XL as well as several emulated devices in Android Studio
Steps to reproduce:
See original post
Frequency:
Always, i.e. 100%
Android bug report:
N.A.
Screen capture of the issue
N.A.
gh...@google.com <gh...@google.com> #6
Facing the same problem. UsageStatsManager.queryUsageStats seems to return unpredictable results. I will post more details later.
gh...@google.com <gh...@google.com> #7
Please provide sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
gh...@google.com <gh...@google.com> #8
Please share the apk requested in comment #7 , to proceed further with the bug.
gh...@google.com <gh...@google.com> #9
I created this issue more than a year ago. Back then I did solve this by some workaround / own method. Of course I am now working on something else and cannot develop and provide an extra app for you.
Also please note that this is in fact not anything app-specific but rather a general problem with the Android API (e.g. you might have a look at the multiple threads regardings this onstackoverflow.com ).
Also please note that this is in fact not anything app-specific but rather a general problem with the Android API (e.g. you might have a look at the multiple threads regardings this on
gh...@google.com <gh...@google.com> #10
@ <be...@googlemail.com> in comment #9
Are you using **UsageStatsManager.queryEvents** instead of **queryUsageStats** in your workaround / own method?
**queryEvents** is more precise, however, I have to filter the query result and do lots of computation to get the app usage information.
It's some workaround but not a user-friendly solution.
Are you using **UsageStatsManager.queryEvents** instead of **queryUsageStats** in your workaround / own method?
**queryEvents** is more precise, however, I have to filter the query result and do lots of computation to get the app usage information.
It's some workaround but not a user-friendly solution.
li...@jetbrains.com <li...@jetbrains.com> #11
We have passed this to the development team and will update this issue with more information as it becomes available.
gh...@google.com <gh...@google.com> #12
This is nonsense, it says that i have used viber for 50 minutes today, and i didn't open it even once. When i use queryAndAggregateUsageStats() method it says that 50 minutes are spent on viber which is incorrect, and for the other apps it surprisingly is quite correct. If i use queryEvents, it says that viber is used 0 minutes which is correct, but it says that instagram is used 23 hours, and for the other apps it is correct. And if i use queryUsageStats() all the data is let's say random... I don't understand how app usage stats apps on playstore work that good.
gh...@google.com <gh...@google.com> #13
Hi Team,
Even I’m facing same issue. I tried many methods, tried to run on different android versions but same result. There is some issue UsageStats manager API itself.
Even I’m facing same issue. I tried many methods, tried to run on different android versions but same result. There is some issue UsageStats manager API itself.
st...@cqse.eu <st...@cqse.eu> #14
Hi
I use the usageStatManager and queryAndAggregateUsageStats in two different devices and try to get the usageStats in several periods. The results are wrong. It gave some usage stats that not exist in the given period.
https://drive.google.com/file/d/1wIDMTEXZFjrrHLgHY-SBsoddzUKg0pQ0/view?usp=drive_web (Screenshot_20200702-202506.jpg)
I use the usageStatManager and queryAndAggregateUsageStats in two different devices and try to get the usageStats in several periods. The results are wrong. It gave some usage stats that not exist in the given period.
gh...@google.com <gh...@google.com> #15
Thank you for your feedback. We assure you that we are doing our best to address all issues reported. For now, we will be closing the issue as won't fix obsolete.
If this issue currently still exists, we request that you log a new issue along with the bug report herehttps://goo.gl/TbMiIO and reference this bug for context.
If this issue currently still exists, we request that you log a new issue along with the bug report here
Description
Original Kotlin project issue:
As were investigated, in Kotlin plugin 1.2.60+ files of JVM platform are handled as "Java sources" (JavaSourceRootType), but files of other platforms are handled as "Kotlin sources" (KotlinSourceRootType). This is correct, because non-JVM platform files have nothing to do with Java.
I'm not exactly sure whether the current Android Studio behavior is correct or not. In my opinion, at least files of common platform should be shown in this view, because potentially they can be compiled to Android code. Files of other platforms (JS / Native) are very questionable here.