×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    17

    Menu Options (LCDUI Commands) Missing in S40 SDK 2

    This is my third post regarding possible bugs in S40 SDK 2 when compared with previous S40 SDKs & devices - see Unable to read Chinese resource file S40 SDK 2 and Buttons in LCD forms start on a new line in S40 SDK 2 for the others.

    This time menu options go missing in S40 SDK 2.

    I have the following
    Code:
    	protected List initStandardList()
    	{
    		if (standardList == null) {
    			standardList = newStandardList();
    			standardList.setCommandListener(new CommandListener()
    			{
    				public void commandAction(javax.microedition.lcdui.Command command, Displayable displayable)
    				{
    					if (command == commands.getSelect())
    						controller.displayViewForm(standardList.getSelectedIndex());
    					else if (command == commands.getDelete())
    						controller.displayChoiceList();
    					else if (command == commands.getBack())
    						controller.back();
    					else if (command == commands.getEdit())
    						controller.displayEditForm(standardList.getSelectedIndex());
    					else if (command == newEntityCmd)
    						controller.displayEditor(false);
    				}
    			});
    			standardList.addCommand(commands.getBack());
    			if ((getCommandFlags()[EDIT_IDX] == true) && (getDomainController().isNewEntityAllowed()))
    				standardList.addCommand(getNewEntityCommand());
    		}
    		if (controller.getSize() > 0) {
    			standardList.setSelectCommand(commands.getSelect());
    			if (getCommandFlags()[EDIT_IDX] == true) {
    				standardList.addCommand(commands.getEdit());
    				standardList.addCommand(commands.getDelete());
    				standardList.addCommand(new javax.microedition.lcdui.Command("Dummy 1",
    						javax.microedition.lcdui.Command.ITEM, 0));
    				standardList.addCommand(new javax.microedition.lcdui.Command("Dummy 2",
    						javax.microedition.lcdui.Command.ITEM, 0));
    			}
    		} else {
    		...
    The Back command is displayed (using the curly arrow in bottom RHS). Under the menu button (the three stacked horizontal bars) the following are listed: New <Entity> and Edit. The Delete option is NOT displayed (UNEXPECTED).

    I added Dummy 1 & 2 to see if this was some sort of UI problem - i.e. if they would push the Delete option into view. They don't and furthermore they are not listed either (UNEXPECTED).

    On S40 E6 all commands are displayed as expected - i.e. Back on RH soft key, Select on middle soft key, Options on LH soft key with Dummy 1, Dummy 2, Delete, New <entity> and Edit commands all listed.

    How can you work-around such unexpected differences (bugs?) between S40 editions?

    Is there a different implementation of the normal command soft keys - some sort of pop-up list, say - that works between editions?

    Thanks in advance for your help.

  2. #2
    Registered User
    Join Date
    Jan 2011
    Posts
    17

    Re: Menu Options (LCDUI Commands) Missing in S40 SDK 2

    Here's the fix/workaround for anyone that comes across this problem:

    This effected Touch UI versions of devices. The LCD Command was created using type.ITEM. Evidently, no item is selected in the Touch UI so the fix/workaround was to create the Command using type.SCREEN for all versions.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105

    Re: Menu Options (LCDUI Commands) Missing in S40 SDK 2

    Is this related? The Nokia E6 is a Symbian^3 device and not Series 40. This is an issue for all touch enabled Series 40 phones (full-touch and touch-and-type).

  4. #4
    Registered User
    Join Date
    Feb 2005
    Location
    Campina Grande/PB - Brazil
    Posts
    138

    Re: Menu Options (LCDUI Commands) Missing in S40 SDK 2


Similar Threads

  1. Replies: 5
    Last Post: 2005-01-09, 18:08
  2. implementing a selector (menu) through subclassing lcdui.Screen?
    By nokiafin in forum Mobile Java General
    Replies: 1
    Last Post: 2004-01-19, 07:34
  3. 6600 item commands & options menu
    By random_john_doe in forum Mobile Java General
    Replies: 0
    Last Post: 2003-12-10, 16:18
  4. How to add a menu item in the Options menu of a Nokia 7650 ?
    By nmittal in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-08-07, 08:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×