Java tutorial
//package com.java2s; import android.app.NotificationManager; import android.content.Context; public class Main { public static void clearNotifications(Context mContext) { NotificationManager notificationManager = (NotificationManager) mContext .getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.cancelAll(); } }