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