Search code examples
javajava-memidplcdui

I want to run the application in background of mobile without any GUI in mobile using J2ME?


I am developing the network application in which I want to run my J2ME MIDP application in background without any GUI so that is any way to construct the application is such manner.


Solution

  • try this

    set your current Display to null. so there will not be any form or alert running on the screen. But however your code will be running in the background.

    Display display = Display.getDisplay(this);  // here 'this' points to Midlet
    
    display.setCurrent(null);