@TargetApi(Build.VERSION_CODES.ECLAIR)
    public static void cancel(final Context context) {
        final NotificationManager nm = (NotificationManager) context
                .getSystemService(Context.NOTIFICATION_SERVICE);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ECLAIR) {
            nm.cancel(NOTIFICATION_TAG, 0);
        } else {
            nm.cancel(NOTIFICATION_TAG.hashCode());
        }
    }
@ TargetApi ( Build . VERSION_CODES . ECLAIR ) public static void cancel ( final Context context ) { final NotificationManager nm = ( NotificationManager ) context . getSystemService ( Context . NOTIFICATION_SERVICE ) ; if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . ECLAIR ) { nm . cancel ( NOTIFICATION_TAG , 0 ) ; } else { nm . cancel ( NOTIFICATION_TAG . hashCode ( ) ) ; } }
Cancels any notifications of this type previously shown using
{@link #notify(Context, String, int)}.