[英]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.