title: Handling status bar notification before it is displayed
body: <p>I am using <code>NotificationListenerService</code> to handle device notifications:</p>
  
  <pre><code>@Override
  public void onNotificationPosted(StatusBarNotification sbn) {
  
      Log.d(TAG,"onNotificationPosted posted - ID :" + sbn.getId() + "\t"
              + sbn.getNotification().tickerText + "\t" + sbn.getPackageName());
   }
  </code></pre>
  
  <p>The <code>onNotificationPosted()</code> method is called after the notification has been posted on the device. Is there a way to catch it before it is presented?</p>
  
  <p>I saw that reading notifications can also be achieved using the  <a href="http://developer.android.com/reference/android/view/accessibility/AccessibilityManager.html">AccessibilityManager</a> but again it's read after the notification popped.</p>
  
  <p>Is there a way to delay the device notifications pop-ups until some moment?</p>
  
  <p>I know I can delete a notification using the <code>NotificationListenerService</code> as it come (after it popped to the user) and save it and try to relaunch it later. But I am having issues with the relaunching and again this is happening after the status bar notification is already shown.</p>