No. There is no need to set properties to 'run on startup', but in that case you will need to start the app yourself.
An example:
Code:
public class Test_01 extends Application implements PhoneListener {
private Screen_01 fScreen;
public Test_01() {
Phone.addPhoneListener(this);
fScreen = new Screen_01();
}
public static void main(String[] args) {
//create a new instance of the application
//and start the application on the event thread
Test_01 app = new Test_01();
app.enterEventDispatcher();
System.out.println("App started");
}
}
// now few of the PhoneListener implementations:
//...
public void callAnswered(int arg0) {
System.out.println("EVENT: callAnswered");
Ui.getUiEngine().pushGlobalScreen(fScreen, 4, UiEngine.GLOBAL_QUEUE);
}
//...
public void callDisconnected(int arg0) {
System.out.println("EVENT: callDisconnected");
Ui.getUiEngine().popScreen(fScreen);
}
//...
now create the screen:
Code:
final public class Screen_01 extends PopupScreen {
public Screen_01() {
super(new VerticalFieldManager());
// you can write whatever you want, i'll just draw a bitmap :)
Bitmap fBitmap = new Bitmap(20, 50);
Graphics fGraphics = new Graphics(fBitmap);
fGraphics.drawLine(0, 0, 20, 50);
add(new BitmapField(fBitmap));
}
}
Happy coding