Code example for AccessibilityManager

Methods: isEnabled, isTouchExplorationEnabled

     * @return {@code true} if touch exploration is enabled. 
    public boolean isTouchExplorationEnabled() { 
                && mAccessibilityManager.isEnabled()
                && mAccessibilityManager.isTouchExplorationEnabled();
     * Returns {@true} if the provided event is a touch exploration (e.g. hover) 
     * event. This is used to determine whether the event should be processed by 
     * the touch exploration code within the keyboard. 
     * @param event The event to check. 
     * @return {@true} is the event is a touch exploration event 
    public boolean isTouchExplorationEvent(MotionEvent event) {
        final int action = event.getAction();
        return action == MotionEvent.ACTION_HOVER_ENTER