简体   繁体   English

如何关闭某些无障碍服务的触摸探索

[英]How to switch off explore by touch for some accessibility service

How i can switch off explore by touch for some accessibility service,for example for google talkback,if i know package of this service.如果我知道此服务的 package,我如何关闭某些可访问性服务的触摸探索,例如谷歌对讲。 I try to change preferences of this service,because i know,that in talkback use PreferenceFragment key,which developers of talkback use for it,but it seems,that it creates new preferences xml file.我尝试更改此服务的首选项,因为我知道,在对讲中使用 PreferenceFragment 键,对讲的开发人员使用它,但它似乎创建了新的首选项 xml 文件。 I tryed to use: Context c=createPackageContext("com.google.android.marvin.talkback", Context.MODE_PRIVATE); SharedPreferences p =PreferenceManager.getDefaultSharedPreferences(c);\ p.edit().putBoolean("pref_explore_by_touch", false).commit();我尝试使用: Context c=createPackageContext("com.google.android.marvin.talkback", Context.MODE_PRIVATE); SharedPreferences p =PreferenceManager.getDefaultSharedPreferences(c);\ p.edit().putBoolean("pref_explore_by_touch", false).commit(); Context c=createPackageContext("com.google.android.marvin.talkback", Context.MODE_PRIVATE); SharedPreferences p =PreferenceManager.getDefaultSharedPreferences(c);\ p.edit().putBoolean("pref_explore_by_touch", false).commit(); But it not works.但它不起作用。 Also i tryed get access to /data/data/com.google.android.marvin.talkback/,but list of files in this directory is null,and file can't read.我也尝试访问/data/data/com.google.android.marvin.talkback/,但此目录中的文件列表是null,文件无法读取。 I grant write/read_external_storage permissions.我授予 write/read_external_storage 权限。 My phone is not rooted.我的手机没有root。 How to modify accessibilityServiceInfo of some service or change it preferences programatically.如何修改某些服务的accessibilityServiceInfo 或以编程方式更改它的首选项。 At least how to do this for talkback Thanks everybody very much for any help.至少如何为对讲执行此操作非常感谢大家的帮助。

If any service requests explore by touch, the framework turns it on.如果任何服务请求通过触摸进行探索,框架就会将其打开。 It's not possible to forcibly turn it off from another process.无法从另一个进程强行将其关闭。

Apps also cannot change one another's preferences.应用程序也无法更改彼此的偏好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在可访问性打开时禁用 Jelly-Bean 上的“通过触摸探索”? - How to disable Explore By Touch on Jelly-Bean while accessibility is on? 启用具有辅助功能的手势(例如触摸浏览) - Capturing gestures with accessibility features on (such as explore-by-touch) Android 4.4.2辅助功能“按触摸浏览”在应用中不起作用 - Android 4.4.2 Accessibility Explore By Touch not working in app 如何以可编程方式打开和关闭辅助功能服务? - How can I turn On and Off Accessibility Service programmably? Xamarin.Android:如何永久打开辅助功能 - Xamarin.Android: how to switch on Accessibility Service permanently Android 2.0.4中的姜饼选项类似于Android 4.0.4中的可访问性选项(“触摸探索”)ICECREAMSANDWICH - What is the option in Android 2.3.3 Gingerbread LIKE THE ACCESSIBILITY OPTION (“Explore by touch”) in Android 4.0.4 ICECREAMSANDWICH 在无障碍服务中禁用 Android 中的触摸屏 - Disable touch screen in Android in accessibility service 启用“按触摸浏览”时如何捕获“两根手指”触摸? - How to capture **two fingers** touch while Explore By Touch is enabled? Android 2.3.3触摸浏览 - Android 2.3.3 touch by explore 您如何检测用户何时关闭 Android 中的无障碍服务? - How do you detect when user turns off accessibility service in Android?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM