Accessibility: TYPE_NOTIFICATION_STATE_CHANGED state
<p>I've written an app using an accessibilityService.</p>

<p>I've found that I can detect when notifications appear in the notification bar, but cannot work out how to trigger when they get cleared.</p>

<p>According to the android api docs:</p>

<blockquote>
  <p>TYPE_NOTIFICATION_STATE_CHANGED 
  "Represents the event showing/hiding a
  Notification. "</p>
</blockquote>

<p>..so I'm confused to why the onAccessibilityEvent only ever seems to get fired when showing an event, but not hiding one.</p>

<p>I'm registering the service with the following:</p>

<pre><code>    AccessibilityServiceInfo localAccessibilityServiceInfo = new AccessibilityServiceInfo();
    localAccessibilityServiceInfo.eventTypes = AccessibilityEvent.TYPES_ALL_MASK;   //monitor all, then we can           
    localAccessibilityServiceInfo.notificationTimeout = 80L;
    localAccessibilityServiceInfo.feedbackType = AccessibilityServiceInfo.DEFAULT;
    setServiceInfo(localAccessibilityServiceInfo);
</code></pre>

<p>Does anyone know why this would not pick up on the hiding of a notification?</p>
