Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

How to send MIDlet to background on Symbian

From Wiki
Jump to: navigation, search
Article Metadata
Created: Aleksi (03 Apr 2007)
Last edited: hamishwillee (09 Aug 2013)

This articles shows how to use setCurrent(null) to send a foreground application to the background - on Symbian.

Warning.pngWarning: On Series 40 phones this approach does not work.

The setCurrent(null) doesn't set the displayable to null but is used in Java ME implementations that support concurrent applications like Symbian to send the foreground application to background. The application that is shown is the last application that was shown before the MIDlet got activated. For example, if user launched the MIDlet from application shell just before then application shell is shown.

Following code can be used to send MIDlet to background:

Display display = Display.getDisplay(myMIDletClass);

How to get it back

To get a background app back to the foreground, call setCurrent() with a Displayable. If you don't want to change the current Displayable, use:

This page was last modified on 9 August 2013, at 06:09.
57 page views in the last 30 days.