tags:

views:

256

answers:

1

I'm new to j2me, just learning, now i have got a problem with my midlet application.

whenever i execute this midlet the Emulator shows the error: 'This application does not use the screen, and runs in background'.

so far i know that we have to give the Reference of the screen to the instance of the Display, for that i did this :

private Display display;

display = Display.getDisplay(this);

still i m facing the above error. please help me with this

A: 

Not only do you need to initialize the display you also need to set the current form:

mainForm= new Form("My Form");
display = Display.getDisplay(this);
display.setCurrent(mainForm);
pygorex1
i have done that thing still it appears that something is wrong...i did it..
Shreyas