Code example for ActivityManager

Methods: killBackgroundProcesses

0
				} else { 
					msg.arg1 = HWA_DISABLE_FAILED;
					mHandler.sendMessage(msg);
				} 
			} 
			mActivityManager.killBackgroundProcesses(packageName);
			return null; 
		} 
 
		private boolean enableHwa(String packageName) {
			boolean enabled = false;
			File file = new File("/data/local/hwui.deny/" + packageName);
			if (file.exists()) {
				enabled = file.delete();
			} else 
				enabled = true;
			if (enabled) {
				ContentValues values = new ContentValues();
				values.put(PackageListProvider.HWA_ENABLED, "true");
				mContentResolver.update(Uri.withAppendedPath(
						PackageListProvider.PACKAGE_URI, packageName), values,