android - Accessibility service notification removed -
is there anyway know notification have been removed? when call code:
@override public void onserviceconnected() { accessibilityserviceinfo info = new accessibilityserviceinfo(); info.eventtypes = accessibilityevent.types_all_mask; info.notificationtimeout = 1; info.feedbacktype = accessibilityevent.types_all_mask; setserviceinfo(info); } @override public void onaccessibilityevent(accessibilityevent event) { string s = event.gettext()+""; log.d(tag, s); }
i got notification dissmised
, don't tell me notification dismissed.
you should use notificationlistenerservice purpose (to catch notification of application notificationlistenerservice option accessibility service).
where onnotificationremoved gives statusbarnotification parameter. reading param can information notification.
you can read notificationlistenerservice-example more details.
Comments
Post a Comment