xwjhlhc
Results
comments of
xwjhlhc
写一个系统级别的广播Intent.ACTION_TIME_TICK, 在广播里写: @Override public void onReceive(Context context, Intent intent) { boolean isServicesRunning = false; if (intent.getAction().equals(Intent.ACTION_TIME_TICK)) { System.out.println("isServicesRunning="+isServicesRunning); //检查Service状态 ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); for (RunningServiceInfo services : am.getRunningServices(Integer.MAX_VALUE)) {...