Android O Replacement for getRunningServices
问题 In previous versions of Android, I used this method to find if a service from another app was up and running. It worked reliably for me: ActivityManager manager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE); List<RunningServiceInfo> services = manager.getRunningServices(Integer.MAX_VALUE); However, with Android O this is now deprecated and will only return information about the calling apps services. I've looked into other solutions, but I don't want to ask the user for more