E65 left softkey problem

hi

i've developed an application for Nokia 6280.

the left softkey is opening a menu screen.

for some reason, when i've adjusted the application to E65, each time i press the left softkey, it performes as if it was pressed twice - i see it opened and closed imidiatly. futher more, i've printed the action to the console and it indeed indicates that two presses where made.

i've checked it on two different devices, and it acted the same.

what makes it do that, and how do i solve it?

thanks, eran

[544 byte] By [eranweina] at [2007-11-27 10:40:10]
# 1

I found that nokia devices handle soft-keys in strange ways. Your best bet is probably to utilize the Nokia specific libraries for gaining access to fullscreen, and drawing your own soft-key labels. It's a pain, but that's the only way I found to get soft-keys to behave properly in all nokia phones with the same code.

Look for nokiaui.zip on the nokia developer site. I don't have a link at the moment, but put that in your build path and extend the "NokiaGameScreen" class instead of Canvas. From there when you capture keypresses KEY_SOFTKEY1 is the left soft-key, and KEY_SOFTKEY2 is the right soft-key.

Hope it helps!

hooblea at 2007-7-28 19:05:17 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

I had the same problem. My canvas was fullscreen and to left softkey I had attached a function for custom menu to come up. For some reason phone understood one keypress as a two, thus selecting the first command active in menu. Since phone was just out of package and I was running it first time, and on another e65 no such problem existed, I thought it must be related somehow to being the first time phone is being used. I turned it off and on and problem was gone. Weird. If that doesnt help, perhaps firmware upgrade is in order.

Zangaza at 2007-7-28 19:05:17 > top of Java-index,Java Mobility Forums,Java ME Technologies...