如何获得运行的应用程序的列表?如何获得、应用程序、列表

2023-09-12 06:33:08 作者:云朵有点甜❤

我工作的一个应用程序,它现在需要在系统启动到运行的应用程序的信息。是否有一个API /方法来获取这方面的信息?

I am working on an app which needs the information of the apps running at the system up to now. Is there an API/method to retrieve that kind of information?

推荐答案

您可以获取有关使用的 ActivityManager 类。

You can get information about running processes using the ActivityManager class.