Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个无障碍服务应用程序。我想要的只是通过单击同一应用程序的按钮将其关闭。我怎样才能做到这一点?
除非设备已植根,否则我怀疑这是可能的。
无论如何,您可以打开无障碍服务页面,以便用户可以打开/关闭它。
Intent intent = new Intent(android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS); startActivityForResult(intent, 0);