判断一个service是否启动


public static boolean isWorked(String className) {  
ActivityManager myManager=(ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); 
ArrayList runningService = (ArrayList) myManager.getRunningServices(30);  
for(int i = 0 ; i



你可能感兴趣的:(Android,android开发学习)