You Are Here:

Community: Developer Discussion Boards

#1 Old 6660 and CommandListening - 2003-11-07, 16:26

Join Date: Nov 2003
Posts: 16
zono666
Offline
Registered User
6600 and commands
In my main Midlet class I construct a command "play" like this:

Code:
play = new Command("Play", Command.OK, 1);
I create a MainScreen object which extends GameCanvas and add the just created command to it:

Code:
mainScreen = new MainScreen(this);
mainScreen.setCommandListener(this);
mainScreen.addCommand(play);
display = Display.getDisplay(this);
display.setCurrent(mainScreen);
My commandAction looks like this:

Code:
public void commandAction(Command com, Displayable d){
	if (com == play){
		startGame();
	}
}
All these lines of code are in my main Midlet.

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.
Reply With Quote

#2 Old 2003-11-07, 16:51

Join Date: Nov 2003
Posts: 16
zono666
Offline
Registered User
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?
Reply With Quote

#3 Old 2004-05-11, 14:49

Join Date: Feb 2004
Posts: 17
sergioiannazzo
Offline
Registered User
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?
Reply With Quote

#4 Old 2004-05-11, 14:57

Join Date: Nov 2003
Posts: 16
zono666
Offline
Registered User
It's a bug in the 6600 software and hopefully we get a fix as soon as possible.
Reply With Quote

#5 Old 2004-05-11, 16:08

Join Date: Feb 2004
Posts: 17
sergioiannazzo
Offline
Registered User
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 ?
Reply With Quote

#6 Old 2004-05-11, 16:12

Join Date: Feb 2004
Posts: 17
sergioiannazzo
Offline
Registered User
sorry I misunderstood you were from nokia !!
Reply With Quote

#7 Old 2004-05-24, 12:16

Join Date: Feb 2004
Posts: 17
sergioiannazzo
Offline
Registered User
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 !!
Reply With Quote

#8 Old 2004-05-25, 03:05

Join Date: Jun 2003
Posts: 75
fabiolee
Offline
Regular Contributor
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;
  }
}
Reply With Quote

#9 Old 2004-05-25, 09:30

Join Date: Feb 2004
Posts: 17
sergioiannazzo
Offline
Registered User
Thanks this seems to be the right solution, but is this portable ?
Reply With Quote

#10 Old 2004-05-25, 10:53

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
It's portable across Nokia handsets since they all have the same codes for the right and left softkeys.

shmoove
Reply With Quote

#11 Old 2004-06-01, 03:27

Join Date: Mar 2003
Posts: 162
Location: Malaysia-Johor-Pontian Kecil
akokchai
Offline
Regular Contributor
Hi,

I've upgraded my N6600 from 3.42.1 to 4.09.1, but the issue "Command in GameCanvas" is still exist.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia