Files in the sample application

File name

Description

MediaKeysDemoMIDlet.java

  • contains the constructor that initializes the MediaBehaviourControl interface
  • extends the Canvas class and implements the keyPressed(), keyReleased(), and keyRepeated() methods which handle media key-press events

MediaKeysMIDletConstants.java

  • contains constants that specify which media key was pressed

MediaKeysDemoMIDlet.jad

  • contains configuration information about the application
  • includes the RIM-MIDlet-MediaPlayerModeEnabled option to configure the default setting for media player mode
Next topic: System requirements

Was this information helpful? Send us your comments.