I'm developing an accessibility service in Android. I want to disable some functions when the user turns off accessibility service, but I'm not sure how I can detect that.
I thought when user turns it off, it will call onDestroy(), but apparently, it's not being called.
Is there any way to know when the user toggles off accessibility service? Or is there a function which gets called whenever user toggles off?
(Just in case, I'm developing for Android wear.)
Thanks very much!! I appreciate your help! :)