标签:android style blog color for cti div log
1.判断服务是否在运行
public static boolean isServiceRunning(Context context, Class<?> serviceClass) { ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) { if (serviceClass.getName().equals(service.service.getClassName())) { return true; } } return false; }
Android Service,布布扣,bubuko.com
标签:android style blog color for cti div log
原文地址:http://www.cnblogs.com/baron89/p/3921330.html