How to check if Talkback is active in JellyBean

后端 未结 4 1373
半阙折子戏
半阙折子戏 2021-01-06 08:49

This question asked how to know if Android Talkback is active; that worked until Jelly Bean. Starting from Android 4.1, that steps no longer work, because the mentioned curs

4条回答
  •  一向
    一向 (楼主)
    2021-01-06 09:04

    This can be achieved much easier by using AccessibilityManager.

    AccessibilityManager am = (AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE);
    boolean isAccessibilityEnabled = am.isEnabled();
    boolean isExploreByTouchEnabled = am.isTouchExplorationEnabled();
    

提交回复
热议问题