example.audiodemo
Class BBall
java.lang.Object
javax.microedition.midlet.MIDlet
example.audiodemo.BBall
- All Implemented Interfaces:
- java.lang.Runnable, javax.microedition.lcdui.CommandListener
public class BBall
- extends javax.microedition.midlet.MIDlet
- implements javax.microedition.lcdui.CommandListener, java.lang.Runnable
Field Summary |
(package private) static java.lang.String |
midbgUrl
|
(package private) static java.lang.String |
wavbgUrl
|
Constructor Summary |
BBall()
|
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. |
void |
displayList()
|
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 |
wavbgUrl
static java.lang.String wavbgUrl
midbgUrl
static java.lang.String midbgUrl
BBall
public BBall()
displayList
public void displayList()
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, wake up the thread. If music was playing
when the MIDlet was paused, call the game's
start 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 game is not already paused, 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