public class DateTimeApp extends MIDlet {
Alert timeAlert;
Form myForm;
public DateTimeApp(){
//constructor
timeAlert = new Alert("Alert..!!");
timeAlert.setString(new Date().toString());
}
public void startApp() {
Display.getDisplay(this).setCurrent(timeAlert);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
Look at the code, all there are nice and simple, and of course it should work fine on mobile emulator.
i'm using Netbeans 7.1.2, and this is Java ME project.
when i run this code, for a seconds it works fine on mobile emulator, but then it give an error immediately and showed in emulator screen:
"This application does not use the screen and runs in the background"
I really want to know what the problem.
can somebody tell me why?
thanks

New Topic/Question
Reply


MultiQuote


|