如何以编程方式启用/禁用辅助服务在Android中 [英] How to Programmatically Enable/Disable Accessibility Service in Android

查看:826
本文介绍了如何以编程方式启用/禁用辅助服务在Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以编程方式启用/下的设置 - >辅助功能选项中列出的禁用辅助服务。

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

我可以开始辅助意向如下图所示:

I could start Accessibility Intent like below:

Intent intent = new Intent(android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS);
startActivityForResult(intent, 0);

但我没有就如何通过我的code能够在视图中列出的服务,任何想法。

But I don't have any idea on how to enable the services listed in the view through my code.

请,提供我的意见。

推荐答案

AccessibilityService是特殊的,不能以编程方式启动。

AccessibilityService is special and cannot be started programmatically.

这篇关于如何以编程方式启用/禁用辅助服务在Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆