Skip to content Skip to sidebar Skip to footer

Accessibility Service's 'onaccessibilityevent' Function Not Being Invoked

I've run into a rather unfortunate problem with an application I'm developing that utilizes an accessibility service to do some special handling of notifications when they arrive o

Solution 1:

This happens probably for a android bug as it is solved in newer android version. when you power off onUnbind is called. But on_boot_finishedonRebind is not called, so your service remains useless. I have provided my solution to this problem here, please check this out.

Solution 2:

This is because the Service is being killed by the Android framework which requires restarting it from the accessibility menu.

Youcan validate this by adding logs in onDestroy() method

Post a Comment for "Accessibility Service's 'onaccessibilityevent' Function Not Being Invoked"