2017-12-27 148 views

回答

0

所有正在運行的服務

的第一獲取列表
ActivityManager manager = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); 
for (RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) { 
    String serv = service.service.getClassName(); 
nbStopRunningService(getApplicationContext(),serv); 
} 

得到個人服務後將其殺死。 使用這個庫

compile 'com.github.nikhilborad:basehelp:1.02'