×

Discussion Board

Results 1 to 7 of 7

Thread: soft button

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    10

    soft button

    Hello,

    I wonder if one could tell me where I can find a doc about the assignment of soft buttons to the Command e.g. .BACK .OK ...

    I am currently writing an application using .OK and .BACK, which are assigned to the left and right soft buttons of my n95, respectively. However, pressing the FIRE button automatically selects the OK soft button function which I do not want as I allocated it to another function.

    Many thanks in advance,

    Dominik

  2. #2
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Bournemouth, UK
    Posts
    65

    Re: soft button

    in commandAction method try an if clause to poll for the buttons pressed and have the fire button call the correct method
    Made With Caffiene And Sleepless Nights

  3. #3
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    220

    Re: soft button

    Hi

    Just to add to rooossone's reply-

    The positioning of .OK,.CANCLE, .BACK ETC commands to the available LSK(left soft key), RSK(right shift key) and MSK(middle soft key) by the J2ME AMS.

    This also depends on whether the handset is having 2 softkeys or 3 softkeys.

    Regards
    Amit

  4. #4
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Bournemouth, UK
    Posts
    65

    Re: soft button

    Check this out. This may help you to work with the soft keys in another manner
    Made With Caffiene And Sleepless Nights

  5. #5
    Registered User
    Join Date
    Sep 2008
    Posts
    10

    Re: soft button

    Hi All,

    Many thanks for your contribution.
    I was looking at the code last night and noticed that the FIRE key is always redirected to the .OK button. (i attached two buttons to the canvas: .OK and .BACK). Instead, the green key (n95 8gb) is taking over the FIRE functionality. although i am in general happy, i wonder if the FIRE button cannot be redirected.

    thanks, Dominik

  6. #6
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Bournemouth, UK
    Posts
    65

    Re: soft button

    if you explicity define what each button can do in the commandaction method im sure this will work. i use the n95 8gb as well and it seems to wrok for me

    example:
    Code:
    public void commandAction(Command c, Displayable d)
    {
        if(c == Command.EXIT)
        {
            // do stuff for Exit Button
        }
        if(c == Command.OK)
        {
            // do stuff for OK Button
        }
        if(c == Command.FIRE)
        {
            // do stuff for Fire Button
        }
    }
    Last edited by rooossone; 2008-09-23 at 12:39.
    Made With Caffiene And Sleepless Nights

  7. #7
    Registered User
    Join Date
    Oct 2008
    Posts
    1

    Re: soft button

    Hello.
    Displayed menu items and functionality of the middle soft key (select key?) may differ on different devices (such as symbian s60 series emulator & s40 series emulator). What could be done in order to standardize the displayed menu items and functionality of the soft keys & green call key?

    Burak

Similar Threads

  1. Popup Left soft key on Fire button click.
    By Asif Nazir in forum Symbian User Interface
    Replies: 6
    Last Post: 2008-05-26, 11:28
  2. Add a control (e.g. button) programmatically
    By ViRuSTriNiTy in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-02, 21:05
  3. Nokia E62/E61 kill button
    By regis.melo in forum Mobile Java General
    Replies: 1
    Last Post: 2007-05-14, 17:55
  4. Changing the 'Select' Soft Button in an Implicit List
    By daniel_wave2005 in forum Mobile Java General
    Replies: 0
    Last Post: 2005-02-10, 21:05
  5. FullCanvas, reporting soft button presses
    By AbU5e in forum Mobile Java General
    Replies: 6
    Last Post: 2002-06-06, 08:35

Posting Permissions

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