Code example for SparseArray

Methods: clearsize

0
				StatusBarNotificationManager.class, StatusBarNotificationManager.getInstance(), "notificationDataMap"); 
		if (notificationMap == null) {
			return; 
		} 
 
		for (int i = 0; i < notificationMap.size(); i++) {
			notificationManager.cancel(notificationMap.keyAt(i));
		} 
 
		notificationMap.clear();
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java