Files in the sample application

File name

Description

TouchEventInjectorDemo.java

This file contains the application, including the application's entry point. The entry point starts the application, checks if the device has a touch screen, and if it does, the entry point displays the TouchEventInjectorScreen.

TouchEventInjectorScreen.java

This file performs the following actions in the sample application:

  • creates and adds the menu items that create and inject each of the touch events into the application
  • creates and displays a sample ButtonField component, which the application uses to demonstrate how to handle UI component events
  • overrides the touchEvent() method, which captures and handles touch events
Next topic: System requirements
Previous topic: Featured classes

Was this information helpful? Send us your comments.