I have written a game that has menu via GameCanvas.addCommand(...). When the user presses a button the menu pops up, all handled somewhere in the J2ME framework. Now I would like to pause the game while the popup menu is visible. Is there a way to do that? How do I get notified / poll to see if the pop up is shown?

I am running directly on a Sony Ericsson K700. Is this a bug? The popup obscuring the GameCanvas is "system screen", right? The method isShown() should go to false and hideNotify() should be called, right?

Here's another idea:Instead of adding all the options as Commands to the Canvas, only add one Command called called "Menu", and when this Command fires open the menu in a List or something (or even better - implement a graphical menu on the Canvas itself). This way you know exactly when the menu is displayed (since it fires a commandAction()).

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org