How to Programmatically Enable/Disable Accessibility Service in Android

后端 未结 9 574
暗喜
暗喜 2020-11-27 15:38

I would like to programmatically enable/disable Accessibility Services listed under Settings->Accessibility option.

I could start Accessibility Intent like below:

9条回答
  •  广开言路
    2020-11-27 16:01

    I found this post: How to programmatically check if a service is declared in AndroidManifest.xml?. The top answer talks about PackageManager, which tells you what is running.

提交回复
热议问题