Code example for ActivityManager

Methods: killBackgroundProcesses

0
		ApplicationInfo tempAppInfo = packageUtil
				.getApplicationInfo(processName);
		if (tempAppInfo == null) {
			return; 
		} 
		activityManager.killBackgroundProcesses(tempAppInfo.packageName);
		Toast.makeText(procinfo.this, "������ɱ��!", Toast.LENGTH_LONG).show();
	} 
 
	/* 
	 * ����һ��ListAdapter 
	 */ 
	public proclist buildProcListAdapter() { 
 
		if (!runningProcessList.isEmpty()) {
			runningProcessList.clear();
		} 
		if (!infoList.isEmpty()) {
			infoList.clear();
		} 
		// ��ȡ�������еĽ����б�