×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    6

    Exclamation Fire Button Problems - please help

    Hello,

    I got some problems with the fire button in some nokia models:
    6280, 6230, 6021 ...
    Pressing the fire button will trigger a soft button behavior and pops up a menu.
    I'm using the getGameAction to identify the fire button and in other models (6680 and n90) i get the correct behavior...
    Can someone guide me what to do?

    Thanks.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280

    Re: Fire Button Problems - please help

    Print the keycode and game action you get on screen. You might need to try another button (have you tried 5?).

    shmoove

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    6

    Re: Fire Button Problems - please help

    Thank you for replying.

    I can put the 5 keycode, but what will happen in a "normal" device that knows how to use the canvas.fire? will the 5 keycode be mapped to another key?

  4. #4
    Registered User
    Join Date
    Jun 2006
    Posts
    7

    Smile For Nokia 6230

    Pleae see this post. It may prove to be helpful

    http://discussion.forum.nokia.com/fo...ad.php?t=74667

    For Nokia 6230, if you have any commands added to the displayable, then
    Canvas.FIRE corresponds to the Green CALL button.

    If absolutely no command object is added then the Middle Soft Key (MSK) will correspond to the Canvas.FIRE button

    Regards,
    abhayan

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    21

    Re: For Nokia 6230

    Sorry for reviving an old thread, but the issue doesn't seem resolved to me. I run into the same problem on an E72: The "fire" button just opens the left menu (and doesn't send any key event to Java ME), and I have to press "A" for FIRE. The "call" button doesn't map to the FIRE action on my device.
    This rather looks like a bug to me, because:
    * The user wants to fire by pressing the "fire" button. Should my application come with a manual that tells the user wich keys to press?
    * Even if I'd were to write a manual: How am I to figure out which key to press on the user's device? Is there a list which specifies this behaviour for different devices?

  6. #6
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: For Nokia 6230

    OK... my first recommendation is not to mix the use of Command/CommandListener with keyPressed() events. They work together with varying degrees of success, depending on device. (If you think Nokia's are inconsistent, wait until you want to support other manufacturers' devices...)

    Never use Commands with a Canvas with setFullscreenMode(tue).

    For Series 60, 3rd Edtition FP2 and later, you can disable the assignment of Commands to the dpad-dentre ("fire" key), and enable keyPressed() events, when in non-fullscreen mode and using Commands. Add:

    Code:
    Nokia-MIDlet-S60-Selection-Key-Compatibility: true
    to your JAD or Manifest.

    Beware getGameAction(). Remember that several keys might map to the same action (there might be more than one FIRE key).

    On Nokia and Sony Ericsson devices, you can refer to the dpad-centre as:

    Code:
    com.nokia.mid.ui.FullCanvas.KEY_SOFTKEY3
    Graham,

Similar Threads

  1. Dialog button vs softkey button
    By apitoman in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-07-19, 12:28
  2. Fire button
    By arik_v in forum Mobile Java General
    Replies: 2
    Last Post: 2006-06-27, 11:10
  3. S40 DP2.0 FIRE button bug?
    By huiben in forum Mobile Java Tools & SDKs
    Replies: 5
    Last Post: 2006-06-27, 10:56
  4. Several problems with NMIT 4.1 MMS
    By jtalviva in forum General Messaging
    Replies: 0
    Last Post: 2006-03-10, 11:03

Posting Permissions

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