Subversion Repositories Projects

Rev

Rev 221 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
206 ligi 1
/***********************************************************************
2
 *                                                          
3
 * DUBwise == Digital UFO Broadcasting with intelligent service equipment
4
 * main MIDLet Source file
5
 *                                                          
6
 * Author:        Marcus -LiGi- Bueschleb
7
 * Mailto:        LiGi @at@ LiGi DOTT de                    
8
 *
9
 ************************************************************************/
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  DUBwiseCanvas canvas;
21
    public boolean loaded=false;
22
 
23
    public void log(String str)
24
    {
25
        //      canvas.debug.log(str);
26
    }
27
    public void vibrate(int duration)
28
    {
29
        display.vibrate(duration);
30
    }
31
 
32
    protected void startApp()
33
        throws MIDletStateChangeException
34
    {
35
 
36
       if (loaded)return;
37
       display  = Display.getDisplay(this);
38
       canvas=new  DUBwiseCanvas(this);
221 ligi 39
 
206 ligi 40
       // fire up canvas
41
       display.setCurrent(canvas);
42
       loaded=true;
43
    }
44
 
45
 
46
    public void quit() { notifyDestroyed(); }
47
    protected void pauseApp()     {}   // not needed right now
48
    protected void destroyApp(boolean arg0)  {    }
49
 
50
}