Subversion Repositories Projects

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

/***********************************************************************
 *                                                          
 * DUBwise == Digital UFO Broadcasting with intelligent service equipment
 * main MIDLet Source file
 *                                                          
 * Author:        Marcus -LiGi- Bueschleb                    
 *
 * see README for further Infos
 *
 ************************************************************************/


import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

public class DUBwise
    extends MIDlet

{
    public Display display;
    public  MKMiniCanvas canvas;
    public boolean loaded=false;

    public void vibrate(int duration)
    {
        display.vibrate(duration);
    }

    protected void startApp()
        throws MIDletStateChangeException
    {

       if (loaded)return;
       display  = Display.getDisplay(this);
       canvas=new  MKMiniCanvas(this);

       // fire up canvas
       display.setCurrent(canvas);
       loaded=true;
    }

   
    public void quit() { notifyDestroyed(); }
    protected void pauseApp()     {}   // not needed right now
    protected void destroyApp(boolean arg0)  {    }

}