Explore the AccessibilityDemo sample application

You can explore the AccessibilityDemo sample application to help increase your understanding of the communication between an accessible application and an assistive technology application.

Before you begin: Set up the sample application in either the BlackBerry® Java® Plug-in for Eclipse® or the BlackBerry® Java® Development Environment.
  1. Perform one of the following actions to display the console window:
    • In the BlackBerry Java Plug-in for Eclipse, on the Window menu, select Show View > Console.
    • In the BlackBerry JDE, on the View menu, click Output and click the Debug tab.
  2. Perform one of the following actions to start a debugging session:
    • In the BlackBerry Java Plug-in for Eclipse, right-click the CustomComponentsDemo project in the Project Explorer, then on the Debug As menu, select BlackBerry Simulator.
    • In the BlackBerry JDE, build the CustomComponentsDemo project and the ScreenReaderDemo project, then on the Debug menu, click Go.
  3. In the BlackBerry Smartphone Simulator, run the AccessibilityDemo application in the Downloads folder. The simulator displays the Home screen for the application, which is made up of a row of icons, a table, a custom numeric field, and a custom text field.
  4. In the BlackBerry Smartphone Simulator, select the numeric field under the table. Press the U key on the simulator's keyboard twice to increase the value for the field.
The console window displays the standard output from the assistive technology application (a screen reader). A screen reader listens for events on the UI components and processes the events. The screen reader in the AccessibilityDemo sample application responds to events with System.out.println() statements, which the console window displays.

The println() statements show the communication between the sample accessible application and the sample screen reader. An actual screen reader responds to the events in an accessible application in a useful way, such as by speaking the text.

ScreenReader Context: 
com.rim.samples.device.accessibilitydemo.customcomponentsdemo.ValueComponent@fcbe0dd8
---------------- SOUND:  My Gauge Field  value changed to 51
ScreenReader Context: com.rim.samples.device.accessibilitydemo.customcomponentsdemo.ValueComponent@fcbe0dd8
---------------- SOUND:  My Gauge Field  value changed to 52

Was this information helpful? Send us your comments.