ActivityManager activityManger=(ActivityManager) this.getSystemService(ACTIVITY_SERVICE);
List
for(int i=0;i
ActivityManager.RunningAppProcessInfo apinfo ==list.get(i);
if(apinfo.processName.equals(new String("包名")))
{
String[] pkgList=apinfo.pkgList;
for(int j=0;j
//2.2以上是过时的,请用killBackgroundProcesses代替
activityManger.killBackgroundProcesses(pkgList[j]);
}
}
}