Code example for ActivityManager

Methods: getRunningServices

0
			int maxCount) {
		ActivityManager manager = (ActivityManager) CONTEXT
				.getSystemService(Context.ACTIVITY_SERVICE);
		if (20 > maxCount)
			maxCount = 20;
		return manager.getRunningServices(maxCount);
	} 
 
	/** 
	 * 取消某个通知 
	 *  
	 * @param notifyId 
	 *            通知的 ID 
	 * @return 是否成功 
	 */ 
	public static boolean cancelNotification(int notifyId) {
		if (null == CONTEXT) {
			return false; 
		} 
 
		((NotificationManager) CONTEXT