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