Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
303 ligi 1
/***********************************************************************
2
 *                                                          
3
 * DUBwise == Digital UFO Broadcasting with intelligent service equipment
403 ligi 4
 * main MIDLet Source file
303 ligi 5
 *                                                          
6
 * Author:        Marcus -LiGi- Bueschleb                    
403 ligi 7
 *
8
 * see README for further Infos
9
 *
303 ligi 10
 ************************************************************************/
11
 
12
import javax.microedition.lcdui.*;
13
import javax.microedition.midlet.*;
14
 
15
public class DUBwise
16
    extends MIDlet
17
 
18
{
19
    public Display display;
20
    public  MKMiniCanvas canvas;
21
    public boolean loaded=false;
22
 
495 ligi 23
    public void vibrate(int duration)
24
    {
25
        display.vibrate(duration);
26
    }
27
 
303 ligi 28
    protected void startApp()
29
        throws MIDletStateChangeException
30
    {
31
 
32
       if (loaded)return;
33
       display  = Display.getDisplay(this);
34
       canvas=new  MKMiniCanvas(this);
35
 
36
       // fire up canvas
37
       display.setCurrent(canvas);
38
       loaded=true;
39
    }
40
 
41
 
42
    public void quit() { notifyDestroyed(); }
43
    protected void pauseApp()     {}   // not needed right now
44
    protected void destroyApp(boolean arg0)  {    }
45
 
46
}