0 Replies - 7092 Views - Last Post: 08 July 2012 - 03:30 AM

#1 OKIEWARDOYO   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 51
  • Joined: 03-April 12

J2ME - This application does not use the screen and runs in the backgr

Posted 08 July 2012 - 03:30 AM

I have found some code on the internet to create a simple midlet application like below
public class DateTimeApp extends MIDlet {
    Alert timeAlert;
    Form myForm;
    public DateTimeApp(){
        timeAlert = new Alert("Alert..!!");
        timeAlert.setString(new Date().toString());

    public void startApp() {
    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?

Is This A Good Question/Topic? 0
  • +

Page 1 of 1