| Reply | « Previous Thread | Next Thread » |
|
Is it possible to run a midlet in the background?
Ive tried to call the notifyPaused() function to hide the midlet. This works on SUNs emulator but not on Nokias. But on the SUN emulator i cant get the application active again. I would like to have my midlet in the background, and when something happends it will go in to active state again and popup an alert... Is this possible? If so, is it possible to run multiple java applications on the phone? /Roger |
| roger_madsen |
| View Public Profile |
| Find all posts by roger_madsen |
|
I am facing the same problem. Have you found a solution to this issue?
Thanks |
|
Calling notifyPaused() mean: ask JVM to pause application via calling pauseApp().
If you want to run in background call display.setCurrent(null); MIDP API - Display.setCurrent(Displayable nextDisplayable): "The application may pass null as the argument to setCurrent(). This does not have the effect of setting the current Displayable to null; instead, the current Displayable remains unchanged. However, the application management software may interpret this call as a hint from the application that it is requesting to be placed into the background. Similarly, if the application is in the background, passing a non-null reference to setCurrent() may be interpreted by the application management software as a hint that the application is requesting to be brought to the foreground. " |
|
Thanks.
However I have tried several NOKIA phones and they don't support this. As you probably noticed it is a "MAY" and not a must and thus the vendors have the choice not to implement it. Concerning notifyPaused(), I was thinking that since it should cause eventually the MIDlet to enter the pause state then when it happens the MIDlet will also go to the background. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|