Thursday 2 April 2009

Minimizing MIDlets in Sony Ericsson

To check if a MIDlet is minimized, the Displayable.isShown() method can be used. It is of course preferable to check for a minimized MIDlet this way:

private boolean isOnBackGround(){
  boolean isOnBackGround =(BubbleTalk.getDisplay().getCurrent() == null ||
      !BubbleTalk.getDisplay().getCurrent().isShown());
  return isOnBackGround;
}


For more information regarding minimizing MIDlets in Sony Ericsson, click here.

No comments: