How to get all the tasks that are running currently

后端 未结 4 547
轮回少年
轮回少年 2021-01-18 12:43

I want to get all the tasks that are running in android.I found getRunningTasks in ActivityManager but from android-5.0 the getRunningTasks may not give all the tasks (in my

4条回答
  •  没有蜡笔的小新
    2021-01-18 13:40

    I believe getRecentTasks and getRunningTask were deprecated as of API 21. I'm not sure what you're trying to achieve, perhaps u should try getRunningAppProcess. which give u a similar result.

提交回复
热议问题