example.audiodemo
Class MixTest

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by example.audiodemo.MixTest
All Implemented Interfaces:
java.lang.Runnable, javax.microedition.lcdui.CommandListener

public class MixTest
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener, java.lang.Runnable


Field Summary
(package private) static java.lang.String wavUrl
           
 
Constructor Summary
MixTest()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
           
 void destroyApp(boolean unconditional)
          Destroy must cleanup everything not handled by the garbage collector.
static MixTest getInstance()
           
static javax.microedition.lcdui.List getList()
           
 void pauseApp()
          Called when this MIDlet is paused.
 void run()
           
 void startApp()
          Called when this MIDlet is started for the first time, or when the MIDlet returns from paused mode.
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wavUrl

static java.lang.String wavUrl
Constructor Detail

MixTest

public MixTest()
Method Detail

getInstance

public static MixTest getInstance()

getList

public static javax.microedition.lcdui.List getList()

startApp

public void startApp()
Called when this MIDlet is started for the first time, or when the MIDlet returns from paused mode. If it is the first time, display the menu list. Otherwise, if music was playing when the MIDlet was paused, call the demo's playSound method.

Specified by:
startApp in class javax.microedition.midlet.MIDlet

pauseApp

public void pauseApp()
Called when this MIDlet is paused. Pause the thread. If the demo is playing, call its pause method. For consistency across different VM's, it's a good idea to stop the player if it's currently playing.

Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

public void destroyApp(boolean unconditional)
Destroy must cleanup everything not handled by the garbage collector.

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

run

public void run()
Specified by:
run in interface java.lang.Runnable