This is an example of an accessibility service that provides custom feedback for the Clock application which comes by default with Android devices. It demonstrates the following key features of the Android accessibility APIs:

  1. Simple demonstration of how to use the accessibility APIs.
  2. Hands-on example of various ways to utilize the accessibility API for providing alternative and complementary feedback.
  3. Providing application specific feedback — the service handles only accessibility events from the Clock application.
  4. Providing dynamic, context-dependent feedback — feedback type changes depending on the ringer mode.
  5. Application specific UI enhancement — application domain knowledge is utilized to enhance the provided feedback.

Note: This code sample will work only on devices shipped with the default Clock application. If you are running Android 1.6 of Android 2.0 you should enable first ClockBack and then TalkBack since in these releases accessibility services are notified in the order of registration.

Steps to exercise the ClockBack example: