process the command in the main menu

Hi, I'm developing a simple software, which is like a text editor.

I wonder how I can catch the command in the main Menu, so that when the user clicks on the menu "--> close" / 'come back' by accident (there are 2 buttons on the 'Pearl', I need to take into account), I can see a message asking to save the unsaved work.

Thank you

Jerry

My advice would be to substitute onClose() and prompt the user to check he wants out.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for