Archived:Removing the Close (or Exit) command from the LSK menu of the Nokia 6600
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Article Metadata
Compatibility
Platform(s): S60 1st Edition,
S60 2nd Edition
S60 2nd Edition, FP1
S60 2nd Edition, FP2
S60 2nd Edition
S60 2nd Edition, FP1
S60 2nd Edition, FP2
Article
Created: User:Technical writer 2
(May 5, 2004; updated February 21, 2008)
Last edited: lpvalente
(31 Oct 2012)
Overview
Removing the Close (or Exit) command from the LSK menu of S60 1st and 2nd Edition devices.
Description
On older S60 devices a Close/Exit command is automatically added to the UI of all MIDlets. This Close/Exit Command cannot be removed programmatically.
This behavior was changed in S60 2nd Edition Feature Pack 3 platform. On those, and newer S60 devices, there are no additional, automatically added Commands visible in the MIDlet UI.
Series 40 devices have no Close command by the system.


You can remove close by making a work around. Define Command as:---
Command exitCommand = new Command("Exit", Command.CANCEL, 1);
Now when you addCommand then there is no close command will be there.
I tried it in my application. Try and let me know with your feedback.
Thank you for your feedback. This workaround is, however, not recommended by Forum Nokia. You should use Command.EXIT for exit commands.
Forum Nokia KB 12:39, 23 January 2008 (EET)