How to list all services in an android device

后端 未结 2 1148
青春惊慌失措
青春惊慌失措 2021-01-23 04:19

I am looking for a reliable way to programmatically find and list all available services in an Android device (both running and not running).

2条回答
  •  萌比男神i
    2021-01-23 04:44

    In the past I have used the following:

    List list = activityManager.getRunningServices(maxNum);

    I have created an example here

提交回复
热议问题