노티를 발생 시키기 전에 기존 노티(Id)를 확인하여서 이미 노티가 있는 상태면 패스 하려고 합니다.
api 23 이후 는 아래와 같은 코드로 해결을 하였는데 이전 버전에선 어떻게 해야할지요?
StatusBarNotification[] notifications =
mNotificationManager.getActiveNotifications();
for (StatusBarNotification notification : notifications) {
if (notification.getId() == 100) {
// Do something.
}
}