无法导入 android.server.* 包

发布于 2024-11-25 11:04:52 字数 189 浏览 3 评论 0原文

我正在尝试使用 android.server.ProcessStats 类来获取 Android 设备上我的应用程序的 cpu 使用统计信息(pcpu、空闲时间等),但我无法导入包 android.server 需要使用这个类。经过网上搜索,我发现android.server包不是标准SDK的一部分。

谁能告诉我如何/在哪里找到这个包。 谢谢!

I am trying to use android.server.ProcessStats class to get cpu usage statistics (pcpu, idle time, etc) of my app on android device, but I'm not able to import the package android.server
required to use this class. After searching on the net, I came to know that android.server package is not the part of standard SDK.

Can anyone please tell me how/where should I find this package.
Thanks!

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

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

发布评论

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

评论(1

临走之时 2024-12-02 11:04:52

There you go. The rest of the package is also included.

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