Files in the sample application

File name


  • the entry point for the sample application
  • contains constants that define the force of gravity and the coefficient of friction of the surface that the ball rolls on
  • contains methods that read values from the accelerometer in as they occur and these methods apply the values to the movement of the ball
  • contains methods that check if the BlackBerry®device that is running the sample application has an accelerometer
  • contains an inner class, DrawThread, that continuously draws the ball's changing position on the screen
  • contains menu items to start and stop the sample application
Next topic: System requirements
Previous topic: Featured classes

Was this information helpful? Send us your comments.