package com.red.alert.ui.notifications;

import android.app.NotificationManager;
import android.content.Context;

import com.red.alert.R;
import com.red.alert.services.sound.StopSoundService;

public class AppNotifications {
    public static void clearAll(Context context) {
        // Get notification manager
        NotificationManager notificationManager = (NotificationManager) context.getSystemService(context.NOTIFICATION_SERVICE);

        // Cancel all notifications
        notificationManager.cancel(context.getString(R.string.appName).hashCode());

        // Stop alert playing
        StopSoundService.stopSoundService(context);
    }
}

@@ -508,55 +508,12 @@
 ncel
-(context.getString(R.string.appName).hashCode()
+All(
 );%0A%0A
@@ -534,16 +534,25 @@
 p alert 
+sound if 
 playing%0A

Use NotificationManager.cancelAll() to cancel all app notifications