Rev 221 | Go to most recent revision | Details | 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 | vibrate(100); |
||
39 | canvas=new DUBwiseCanvas(this); |
||
40 | vibrate(100); |
||
41 | // fire up canvas |
||
42 | display.setCurrent(canvas); |
||
43 | vibrate(100); |
||
44 | loaded=true; |
||
45 | } |
||
46 | |||
47 | |||
48 | public void quit() { notifyDestroyed(); } |
||
49 | protected void pauseApp() {} // not needed right now |
||
50 | protected void destroyApp(boolean arg0) { } |
||
51 | |||
52 | } |