Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/***********************************************************************
*
* DUBwise == Digital UFO Broadcasting with intelligent service equipment
* main MIDLet Source file
*
* Author: Marcus -LiGi- Bueschleb
* Mailto: LiGi @at@ LiGi DOTT de
*
************************************************************************/
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class DUBwise
extends MIDlet
{
public Display display
;
public DUBwiseCanvas canvas
;
public boolean loaded=
false;
public void log
(String str
)
{
// canvas.debug.log(str);
}
public void vibrate
(int duration
)
{
display.
vibrate(duration
);
}
protected void startApp
()
throws MIDletStateChangeException
{
if (loaded
)return;
display = Display.
getDisplay(this);
vibrate
(100);
canvas=
new DUBwiseCanvas
(this);
vibrate
(100);
// fire up canvas
display.
setCurrent(canvas
);
vibrate
(100);
loaded=
true;
}
public void quit
() { notifyDestroyed
(); }
protected void pauseApp
() {} // not needed right now
protected void destroyApp
(boolean arg0
) { }
}