Android documentation says this method is deprecated in android Oreo. How can I get the list of running services in API-26
then? Is there any workaround?
What about getting a list of running processes? I used activityManager.getRunningAppProcesses()
and again got the same result, while there is no deprecation point in android documentation!