安卓ߞ如何跟踪应用程序或进程的带宽使用情况?

发布于 2024-09-30 13:14:26 字数 130 浏览 1 评论 0原文

我可以跟踪 Android 设备的整体带宽使用情况。我想知道是否有任何方法或途径(也许是 API 或类)可以帮助我跟踪每个应用程序或进程的带宽使用情况?

提出这个问题的原因?我想停止所有那些使用过多带宽并耗尽电池的进程或应用程序。

I can track the overall bandwidth usage of Android device. I wanted to know if there is any method or way, maybe an API or class, that can help me track my bandwidth usage per application or process?

Reason for this question? I want to stop all those processes or applications that are using way too much bandwidth usage and draining the battery.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ゞ记忆︶ㄣ 2024-10-07 13:14:26

You can use the methods in android.net.TrafficStats, particularly getUidRxBytes and getUidTxBytes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文