samples/Support4Demos/src/main/java/com/example/android/supportv4/accessibility/AccessibilityManagerSupportActivity.java
private void registerAccessibilityStateChangeListener() {
        mAccessibilityManager.addAccessibilityStateChangeListener(
                new AccessibilityManager.AccessibilityStateChangeListener() {
                    @Override
                    public void onAccessibilityStateChanged(boolean enabled) {
                        Toast.makeText(AccessibilityManagerSupportActivity.this,
                                getString(R.string.accessibility_manager_accessibility_state,
                                        Boolean.toString(enabled)),
                                Toast.LENGTH_SHORT).show();
                    }
                });
    }
/**
     * Registers an AccessibilityStateChangeListener that show a Toast
     * when the global accessibility state on the device changes.
     */
Registers an AccessibilityStateChangeListener that show a Toast
when the global accessibility state on the device changes.
Registers an AccessibilityStateChangeListener that show a Toast when the global accessibility state on the device changes .
private void registerAccessibilityStateChangeListener() {
        mAccessibilityManager.addAccessibilityStateChangeListener(
                new AccessibilityManager.AccessibilityStateChangeListener() {
                    @Override
                    public void onAccessibilityStateChanged(boolean enabled) {
                        Toast.makeText(AccessibilityManagerSupportActivity.this,
                                getString(R.string.accessibility_manager_accessibility_state,
                                        Boolean.toString(enabled)),
                                Toast.LENGTH_SHORT).show();
                    }
                });
    }
private void registerAccessibilityStateChangeListener ( ) { mAccessibilityManager . addAccessibilityStateChangeListener ( new AccessibilityManager . AccessibilityStateChangeListener ( ) { @ Override public void onAccessibilityStateChanged ( boolean enabled ) { Toast . makeText ( AccessibilityManagerSupportActivity . this , getString ( R . string . accessibility_manager_accessibility_state , Boolean . toString ( enabled ) ) , Toast . LENGTH_SHORT ) . show ( ) ; } } ) ; }
Registers an AccessibilityStateChangeListener that show a Toast
 when the global accessibility state on the device changes.
Registers an AccessibilityStateChangeListener that show a Toast when the global accessibility state on the device changes .