android - 如何在Android中查找新安装的应用程序的数据使用情况

标签 android

如何查看新安装的应用程序的数据使用情况?

getUidTxBytes(int uid) 和 getUidRxBytes(int uid) 用于获取数据使用情况,但如果安装了新应用并使用数据,我如何识别新应用应用程序已安装?还有我怎么知道新安装的应用程序正在使用数据?
我对这个话题很陌生。

最佳答案

您可以从系统注册广播 Intent ,例如 ACTION_PACKAGE_ADDEDACTION_PACKAGE_CHANGED,以便在安装或升级新应用程序时收到通知。包的 UID 总是作为额外的与这些 Intent 一起传递。

SDK Docs link获取更多信息。

HTH

关于android - 如何在Android中查找新安装的应用程序的数据使用情况,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11132693/

相关文章:

android - 网络数据包连接 Intent

android - 如何在 Android webview 中播放全屏 youtube 视频?

android - 在 Android 上从 pdf 生成缩略图

java - Android OutOfMemoryError - 加载 JSON 文件

android - 在 android 中建立 sqlite 连接的最佳方法是什么?

android - React-native/AWS API Gateway 安卓问题

android - 如果用户在卸载后立即再次安装应用程序,GCM 会删除旧的注册 ID 吗?

android - 如何在 android 中获取 Retrofit 错误消息?

java - SHA1withRSA NoSuchAlgorithmException

android - SQLite 数据库和游标