×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    6

    Question How to use Center Button click for NEXT Command action in J2ME?

    Hi,

    m new to the Java micro development. I want to use mobile's center button to perform the same task as done by my NEXT button handler. Currently the things are being handled in commandAction.
    Can anyone please guide me as how to achieve this?

    Thanks in advance.
    Last edited by grishma48; 2010-01-13 at 08:44. Reason: Refreshing...

  2. #2
    Registered User
    Join Date
    Jan 2010
    Posts
    6

    Question Re: How to use Center Button click for NEXT Command action in J2ME?

    hello... plz any1 hv d solution or a hint????????????

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

    Re: How to use Center Button click for NEXT Command action in J2ME?

    Please remember that people reply here in their spare time, so you might have to wait a little while to get a reply.

    As a rule, you cannot decide where Commands appear (on which softkeys). Each device decides how to place them, according to the Command type and priority, based on their own user interface convention.

    What device are you using, and what devices do you intend your application to work on?

    What kind of Displayable object (Canvas, List, Form, ...) are you displaying?

    Graham.

  4. #4
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: How to use Center Button click for NEXT Command action in J2ME?

    I am afraid remapping the keys might be somewhat difficult, and if you are planning to use the standard MIDP classes/methods (like COmmands, CommandListener or whatever) it actually would be impossible...
    3rd party GUI libraries have those options but those actually rely on their own GUI elements, whcih are mostly based on Canvas and thus can remap the pressed keys...
    So you might want to have a look at these...

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    6

    Smile Re: How to use Center Button click for NEXT Command action in J2ME?

    Hi,

    Thanks for your replies.. the issue is resolved my a tricky way of using key codes. I was doin it for S 60 devices

    Graham - I understand that but I was just too much involved in developing the code which made me littl unpatient. :P

    Tiger - I would see thru the libraries you mentioned.. seems intersting stuff in thr...

    Thanks both of you... lookin forward for your help in my future..

Similar Threads

  1. How can the WAP browser communicate to J2ME application?
    By hbfornies in forum Mobile Java General
    Replies: 20
    Last Post: 2007-03-02, 16:32
  2. Can J2ME be used for sending MMS Message ?
    By seno_ap in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-24, 14:36
  3. Disable Menu Button Using J2ME
    By jaceline in forum Mobile Java General
    Replies: 5
    Last Post: 2006-04-25, 16:42
  4. New to J2ME
    By onelife511 in forum Mobile Java General
    Replies: 5
    Last Post: 2006-01-28, 19:46
  5. J2ME Polish Version 1.0 RC6
    By enough in forum Mobile Java General
    Replies: 1
    Last Post: 2004-07-20, 11:25

Posting Permissions

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