×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jun 2008
    Location
    Stockholm-Sweden
    Posts
    11

    how to detect wired headset and BT handsfree button

    Which API should be used to capture wired headset and BT handsfree button? I have tested several candidates without any success so far.

    • I am able to detect volume button and mute button events using Remote Control API, but I don't get any events when I am pressing the answer-hangup-call-button. This kind of confirms what I have noticed about Remote Control API:
      http://wiki.forum.nokia.com/index.ph...ing_media_keys
      "Note that on most devices only volume keys can be used in 3rd party applications using this API"


    • I have also tested the S60 extension KAccessoryModeChanged API (using the instructions from: http://wiki.forum.nokia.com/index.ph...odeChanged_API) without any success.

      StartListeningL(KHeadsetButtonChanged,sizeof(EPSButtonState),EOnlyLast) ;
      is executed without errors, but the HeadsetButtonChangedL(EPSButtonState aState)
      callback is not executed when pressing wired headset button nor BT handsfree button. I have tested on E65, E51 and N82.


    • I have also tried to capture RED and GREEN keys according to this:
      http://wiki.forum.nokia.com/index.ph..._during_a_call

      But no RED or GREEN key is sent when pressing the answer-hangup-button on my heaset.


    Actually I would like to catch the headset key in my application whenever it is pressed, i.e. not (only) in incoming or active call cases.

    Please help me find out what I am missing.

  2. #2
    Registered User
    Join Date
    Jun 2008
    Location
    Stockholm-Sweden
    Posts
    11

    Re: how to detect wired headset and BT handsfree button

    Finally I have found a solution for FP1 devices (E51 and N82) and FP2 devices (N78):

    I am using yet another API called Remote Control Extension API (from FP2 SDK extension): http://wiki.forum.nokia.com/index.ph..._Extension_API

    And with that API the AnswerEndCall() callback is called when the answer/hangup-call-button is pressed on the wired headset.

    On MR devices (E65) this solution is unfortunately not working.


    And I have not been able to detect the answer/hangup-call-button on Bluetooth headset on any devices yet.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Re: how to detect wired headset and BT handsfree button

    Works well on a E52 (FP2 device)

    Thanks for the info!

  4. #4
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    9

    Re: how to detect wired headset and BT handsfree button

    hello, does it work on symbian 3, or belle ?

Posting Permissions

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