Help Center

Local Navigation

Respond to UI navigation events

When you create a BlackBerry® device application, use the new Screen navigation methods and avoid using the TrackwheelListener. If your existing BlackBerry device application implements the TrackwheelListener, update your BlackBerry device application to use the new Screen navigation methods.

  1. Import the net.rim.device.api.ui.Screen class.
  2. Import the net.rim.device.api.system.TrackwheelListener interface.
  3. Manage navigation events by extending the net.rim.device.api.ui.Screen class (or one of its subclasses) and overriding the following navigation methods:
    navigationClick(int status, int time)
    navigationUnclick(int status, int time)
    navigationMovement(int dx, int dy, int status, int time)
    

Index


Was this information helpful? Send us your comments.