When you develop a J2ME application for the BlackBerry you might see that a "Close" command is in the menu even if you never added it.
That's because the operating system of the BlackBerry add this command automatically. To avoid this behaviour you have to add a your command of Command.EXIT type to the screen:
Command myCommand = new Command( "My label", Command.EXIT, 1)
In this way the default command will be replaced by your "My label" command.
That's because the operating system of the BlackBerry add this command automatically. To avoid this behaviour you have to add a your command of Command.EXIT type to the screen:
Command myCommand = new Command( "My label", Command.EXIT, 1)
In this way the default command will be replaced by your "My label" command.
Did you like the article? Buy me a coffee!
postato da: emanuelepec alle ore 20:48 | Permalink | commenti
categoria:tipsandtricks, j2me, blackberry
categoria:tipsandtricks, j2me, blackberry






