it’s possible to handle the Wired Headset (no bluetooth headset, it is very important) buttons in Android?
For example, if the user press the “Play” button (Receive incoming call), I change a TextView’s text (this is a dummy example, not the real mission 🙂 ).
Could somebody post an example code? (if it’s possible)
Thanks, IB
Override
onKeyDown()in yourActivityand watch for theKEYCODE_MEDIA_*family ofKeyEvents.