Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
181 | ligi | 1 | /********************************************************************************************************************************* |
2 | * * |
||
3 | * minimal midlet to test Abstraction layer on various Phones * |
||
4 | * * |
||
5 | * Author: Marcus -LiGi- Bueschleb * |
||
6 | * Project-Start: 9/2007 * |
||
7 | * Mailto: ligi@smart4mobile.de * |
||
8 | * Licence: Creative Commons / Non Commercial * |
||
9 | * Big Up: Holger&Ingo * |
||
10 | *********************************************************************************************************************************/ |
||
11 | |||
12 | import javax.microedition.lcdui.*; |
||
13 | import javax.microedition.midlet.*; |
||
14 | |||
15 | public class MKMiniMidlet |
||
16 | extends MIDlet |
||
17 | |||
18 | { |
||
19 | public Display display; |
||
20 | public MKMiniCanvas canvas; |
||
21 | public boolean loaded=false; |
||
22 | |||
23 | protected void startApp() |
||
24 | throws MIDletStateChangeException |
||
25 | { |
||
26 | |||
27 | if (loaded)return; |
||
28 | display = Display.getDisplay(this); |
||
208 | ligi | 29 | canvas=new MKMiniCanvas(this); |
181 | ligi | 30 | |
31 | // fire up canvas |
||
32 | display.setCurrent(canvas); |
||
33 | loaded=true; |
||
34 | } |
||
35 | |||
36 | |||
37 | public void quit() { notifyDestroyed(); } |
||
38 | protected void pauseApp() {} // not needed right now |
||
39 | protected void destroyApp(boolean arg0) { } |
||
40 | |||
41 | } |