×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Ahmedabad,Gujarat,India
    Posts
    65

    Red face Prblem in disabling the Menu and Exit Key

    Hi,
    This is my code for LIST in the j2me.

    =====================Code Snippet=========================
    showList = load();//load() function returning images with LIST

    passWord_Ok = new Command("Select", Command.OK, 0);
    pwdDataBase_Vector();//Storing the data to the RecordStore
    showList.addCommand(passWord_Ok);
    showList.addCommand(compareOk);
    showList.setCommandListener(this);
    Display.getDisplay(this).setCurrent(showList);//Displaying List //with Images

    ==============PROBLEM========================

    Now my problem is that how can i put the code for the Menukey (keycode=-12) in this described code for List?
    And How can i Disable the MenuKey when i press that key nothing should work on that click event ?
    ===============================================
    I know that what to do but how to do that is my Big Problem in this Particular case....

    Please Provide the Whole Code for this so i can move ahead in my task as i m vry much stucked over here...
    Thanks and Regards,
    Niraj Pendal

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

    Re: Prblem in disabling the Menu and Exit Key

    Hi,

    The keyhandling is possible when you are using your own custome GUI components that are designed using Canvas of GameCanvas.

    The AMS does not give keycodes to the MIDlet using standard j2me GUI components such as form, list etc.

    Regards
    Amit

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Ahmedabad,Gujarat,India
    Posts
    65

    Re: Prblem in disabling the Menu and Exit Key

    Thanks,

    can u explain this with some example code.

    or some reference links!!!

    PLZ
    Thanks and Regards,
    Niraj Pendal

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

    Re: Prblem in disabling the Menu and Exit Key

    is it not possible that when overriding commandAction method you can poll teh command used (i.e. if(commandPassed == EXIT)) and then get it to do nothing as supposed to disabling it you can have it there and without any text so the user would be unaware of the option to press that button.
    Made With Caffiene And Sleepless Nights

  5. #5
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: Prblem in disabling the Menu and Exit Key

    Hmmm... maybe I do not get the question and the answers, but you cannot disable the Red End key or the Application Menu key in Java ME.

    Is this what you are asking, nirajpendal?

    Hartti

  6. #6
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Ahmedabad,Gujarat,India
    Posts
    65

    Re: Prblem in disabling the Menu and Exit Key

    Yes I want to disable original behavior of menu and exit key.

    Application should not go into background when menu is pressed and should not exit when exit is pressed.
    Thanks and Regards,
    Niraj Pendal

  7. #7
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Prblem in disabling the Menu and Exit Key

    Hi nirajpendal,

    as told by hartti, this is not possible in Java ME.

    Pit

  8. #8
    Regular Contributor
    Join Date
    Aug 2008
    Location
    Ahmedabad,Gujarat,India
    Posts
    65

    Re: Prblem in disabling the Menu and Exit Key

    Thanks all for your help.

    I need to find some other way.
    Thanks and Regards,
    Niraj Pendal

Similar Threads

  1. Exit key does not work for standalone app.
    By richard_a in forum Symbian
    Replies: 6
    Last Post: 2008-07-16, 05:34
  2. right soft key to exit on full-screen canvas
    By Larry101 in forum Mobile Java General
    Replies: 5
    Last Post: 2008-02-21, 11:44
  3. Replies: 2
    Last Post: 2007-11-10, 13:19
  4. slide menu in j2me
    By afka in forum Mobile Java General
    Replies: 4
    Last Post: 2006-09-04, 09:10
  5. Pboblem with menu key
    By Utk in forum Symbian
    Replies: 0
    Last Post: 2004-09-07, 12:30

Posting Permissions

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