1

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!

Jay
  • 11
  • 4
  • https://developer.android.com/reference/android/app/ActivityManager.html#getRunningServices(int) – AskNilesh Apr 04 '18 at 08:03
  • As of LOLLIPOP, this method is no longer available to third party applications! – Jay Apr 04 '18 at 08:24
  • form `oreo` not `LOLLIPOP` – AskNilesh Apr 04 '18 at 08:25
  • Yes, Thanks. So what is the workaround? – Jay Apr 04 '18 at 08:54
  • *As of O, this method is no longer available to third party applications* i think there is no workaround above api 26 – AskNilesh Apr 04 '18 at 09:07
  • google making methods unavailable is a good indication they don't want you doing this. Take the hint – Tim Apr 04 '18 at 14:22
  • What about getting a list of running processes? I used it and again got the same result, while there is no deprecation point in android documentation! @NileshRathod – Jay Apr 04 '18 at 18:05
  • And by the way, Clean Master still works on android 8! It boosts ram! So how does it work?! – Jay Apr 04 '18 at 20:27
  • I am trying to figure this same thing out too. P.S. CleanMaster is a piece of **** that only causes problems for us app developers. – Flyview Feb 07 '19 at 20:40

0 Answers0