AccessibilityService is started but does not receive AccessibilityEvents on JellyBean

后端 未结 2 785
野性不改
野性不改 2020-12-05 01:20

I have a AccessibilityService that shall read out any incoming notification. It does work fine with ICS and below, but stopped working with JB.

Below are the Manifes

2条回答
  •  北海茫月
    2020-12-05 01:50

    I experienced this problem in Android 4.1.1. The accessibility service didn't receive events until I disabled and re-enabled the accessibility service.

    To fix the problem, I defined the accessibility service parameters in both setServiceInfo() and accessibilityservice.xml.

    In my case, there was no need to define two different Android-version-dependent accessibility services.

提交回复
热议问题