Rev 181 |
Blame |
Last modification |
View Log
| RSS feed
/*********************************************************************************************************************************
* *
* minimal midlet to test Abstraction layer on various Phones *
* *
* Author: Marcus -LiGi- Bueschleb *
* Project-Start: 9/2007 *
* Mailto: ligi@smart4mobile.de *
* Licence: Creative Commons / Non Commercial *
* Big Up: Holger&Ingo *
*********************************************************************************************************************************/
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class MKMiniMidlet
extends MIDlet
{
public Display display;
public MKMiniCanvas canvas;
public boolean loaded=false;
protected void startApp()
throws MIDletStateChangeException
{
if (loaded)return;
display = Display.getDisplay(this);
canvas=new MKMiniCanvas(this);
// fire up canvas
display.setCurrent(canvas);
loaded=true;
}
public void quit() { notifyDestroyed(); }
protected void pauseApp() {} // not needed right now
protected void destroyApp(boolean arg0) { }
}