×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Aug 2009
    Location
    Iran - Tabriz
    Posts
    111

    use volume key in app

    Hi
    how can i use volume keys and camera key in app ?
    i use -36 and - 37 constant value but it`s not work !!!
    i use this to get key name
    Code:
    str = getKeyName(keyCode);
    but when i press volume keys or camera key it`s return null
    can any body help me
    thanks

  2. #2
    Registered User
    Join Date
    May 2007
    Posts
    91

    Re: use volume key in app

    hello mahdi68,

    Print keyCode value in keyPressed(int keyCode) method.
    And, if we'll get NULL value on getting
    str = getKeyName(keyCode);
    Its means that keyCode is not associated with any name.

    Anyway we can server your pupose via that keyCode only.



    Cheers,
    Amit

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: use volume key in app

    Quote Originally Posted by mahdi68 View Post
    Hi
    how can i use volume keys and camera key in app ?
    i use -36 and - 37 constant value but it`s not work !!!
    i use this to get key name
    Code:
    str = getKeyName(keyCode);
    but when i press volume keys or camera key it`s return null
    can any body help me
    thanks
    Put a SOP to see what keycode you get when use press these key and use them in your program.
    On some device, these key;s do not generate any key press event for running j2me apps.
    Thanks,
    Ekta

Similar Threads

  1. Volume Increase Key
    By nair.shanker in forum Symbian
    Replies: 13
    Last Post: 2011-01-07, 09:19
  2. How to Control the Volume Key?
    By pranay_preet in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2009-10-28, 14:21
  3. how to reserve media key(volume key)?
    By zousmart in forum General Development Questions
    Replies: 0
    Last Post: 2009-05-15, 04:52
  4. HELP: E61 Volume Key/Voice recording key remap
    By raymondcmtam in forum Symbian
    Replies: 3
    Last Post: 2007-07-25, 11:13
  5. HELP: E61 Volume Key/Voice recording key remap
    By raymondcmtam in forum General Development Questions
    Replies: 0
    Last Post: 2007-07-25, 08:40

Posting Permissions

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