简体   繁体   English

Android:如何使应用使用情况的活动低于API级别21?

[英]Android: How to get app usage activity below API level 21?

I want to create an app that shows user his time spent on various apps. 我想创建一个应用程序,向用户显示他在各种应用程序上花费的时间。 Since their is a library available for this namely: ' android.app.usage ' But this package is available at API level 21. Since I don't want to lose 22% market share, is there any other way available to programmatically get app usage activity below API level 21? 由于它们是为此提供的库,即:' android.app.usage '但该程序包在API级别21上可用。由于我不想失去22%的市场份额,因此还有其他方法可用于以编程方式获取应用程序API级别21以下的使用活动?

You can use Firebase Analytics for that. 您可以为此使用Firebase Analytics Firebase has a user property called OS Version which will let you know about the usage on particular api level. Firebase有一个名为OS Version的用户属性,它将使您了解特定api级别的用法。 Also you can send the data to BigQuery for detailed insights. 您也可以将数据发送到BigQuery以获得详细的见解。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android 应用程序在打开 paytm 默认活动时崩溃。 Caused by: java.lang.IllegalStateException: Expected Android API level 21+ 但为 30 - Android app is crashing on while opening paytm default activity. Caused by: java.lang.IllegalStateException: Expected Android API level 21+ but was 30 API 21(android 5)及以下版本的正则表达式模式错误 - Regex pattern error on API 21(android 5) and below CardView未在Android设备上显示(API 21及更低版本) - CardView not showing on android device (api 21 and below) 如何获得低于 23 的 API 级别的 Internet 速度? - How to get Internet speed for API Level below 23? Android:如果API级别低于21,则禁用内容转换动画 - Android: disable content transition animation if API level is under 21 API级别&lt;21的com.google.android.gms.ads.AdView - com.google.android.gms.ads.AdView in API Level < 21 Nativescript 崩溃“预期 Android API 级别 21+ 但为 30” - Nativescript crashes "Expected Android API level 21+ but was 30" Android API 21异步GET请求无法正常工作 - Android API 21 async GET request not working 如何在android中获取应用程序的实际RAM使用情况? - How to get actual RAM usage of app in android? 适用于Android API级别19及以下的ThreadLocalRandom()替代品吗? - ThreadLocalRandom() alternative for Android API level 19 and below?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM