talkback
How to know if Android TalkBack is active?
The recommended way of doing this is to query the AccessibilityManager for the enabled state of accessibility services. AccessibilityManager am = (AccessibilityManager) getSystemService(ACCESSIBILITY_SERVICE); boolean isAccessibilityEnabled = am.isEnabled(); boolean isExploreByTouchEnabled = am.isTouchExplorationEnabled();
Testing Accessibility on Emulated Device (Marshmallow)
It seems that the emulator doesn’t contain Talkback by default so after downloading “TalkBack” apk and install it on the emulator, the option has been enabled.
Android – Set TalkBack accessibility focus to a specific view
DISCLAIMER: Forcing focus on Activity load to be anywhere but at the top bar is always (okay, always should almost never be said), but really, just don’t do it. It is a violation of all sorts of WCAG 2.0 regulations, including 3.2.1 and 3.2.3, regarding predictable navigation and context changes respectively. You are, likely, actually … Read more