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:
"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.
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:
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.