Availability: state TYPE_NOTIFICATION_STATE_CHANGED

I wrote an application using the accessibilityService.

I found that I find that notifications appear in the notification panel, but cannot determine how to start when they are cleared.

According to android api docs:

TYPE_NOTIFICATION_STATE_CHANGED "Represents an event showing / hiding the Notification."

.. therefore I am confused by why onAccessibilityEvent only ever fires when an event is shown, but does not hide it.

I am registering a service with the following:

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

Does anyone know why this would not make the notification hide?

+3
source share
1 answer

Inclusion in the same problem here.

, , : http://code.google.com/p/android/issues/detail?id=18763 - , .

+1

Source: https://habr.com/ru/post/1794476/


All Articles