| Reply | « Previous Thread | Next Thread » |
|
6600 and commands
In my main Midlet class I construct a command "play" like this: Code:
play = new Command("Play", Command.OK, 1);
Code:
mainScreen = new MainScreen(this); mainScreen.setCommandListener(this); mainScreen.addCommand(play); display = Display.getDisplay(this); display.setCurrent(mainScreen); Code:
public void commandAction(Command com, Displayable d){
if (com == play){
startGame();
}
}
Problem: I see the button in my MainScreen but nothing happens when I push them. Not even the commandAction() method is called. What can I do? This works excellent in many simulators. I have tried to change the Command's type, but that doesn't help. |
|
Ok, if I use FullScreenMode (Canvas: setFullScreenMode(true)) the buttons won't work, but they are displayed. In NormalMode everything works fine. Any way to get those buttons to work in FullScreen?
|
|
I'm experimenting the same problem, It seems that Commands are not supported by canvas in FullScreenMode. This is quite strange, since this happens only in actual n6600 device. In J2ME wireless toolkit emulator everything works fine and even in Nokia series 60 emulator it's ok.
It seems that we have here a non compliance with MIDP 2.0 specifications or there is some undelined sync problem that I'm not considering ? Any suggestion from nokia support people? |
| sergioiannazzo |
| View Public Profile |
| Find all posts by sergioiannazzo |
|
It's a bug in the 6600 software and hopefully we get a fix as soon as possible.
|
|
Thanks for honest answer !!!
Just one more question: it is possible to install patches (as the one you will produce for this bug), as well as new releases of the software or new API on 6600 ? |
| sergioiannazzo |
| View Public Profile |
| Find all posts by sergioiannazzo |
|
sorry I misunderstood you were from nokia !!
|
| sergioiannazzo |
| View Public Profile |
| Find all posts by sergioiannazzo |
|
I continue this thread because i'm very disappointed with nokia: after having had a confirmation of the Full Screen Mode and Command bug in nokia 6600, I found a document from nokia:
"Known Issues In The Nokia 6600 MIDP2.0 Implementation Version 1.3; May 11, 2004" in wich is stated: "2.11 Commands in Full Screen Description: Commands can be added to full screen but they do not work. Solution: No solutions exist for software version 3.42.1, but this issue has been corrected in software version 4.09.1." OK this is absolutely false, I went to a nokia service point, asked for a software upgrade (from 3.42.1 to 4.09.1), waited 3 days for the operation, and then nothing changed: also with version 4.09.1 commands do not works properly !! |
| sergioiannazzo |
| View Public Profile |
| Find all posts by sergioiannazzo |
|
normally i will use "KEY_SOFTKEY1" and "KEY_SOFTKEY2" to let the command work.
like: Code:
protected keyPressed(int keyCode) {
switch (keyCode) {
case KEY_SOFTKEY1: // Left Command
...
break;
case KEY_SOFTKEY2: // Right Command
...
break
default:
break;
}
}
|
|
Thanks this seems to be the right solution, but is this portable ?
|
| sergioiannazzo |
| View Public Profile |
| Find all posts by sergioiannazzo |
|
It's portable across Nokia handsets since they all have the same codes for the right and left softkeys.
shmoove |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|