The headset button already answers an incoming call, but once you're in the call, it mutes/unmutes. If you want it to hang up the call instead, you'll need to modify the Phone application.
On Tue, Apr 14, 2009 at 2:44 AM, sein <fang.sh...@zte.com.cn> wrote: > > When I'm testing the functionality of the headset button in a call,it > just muted the mic,didn't hang up the call.And if there is no > call,when I press the button,there will be a song playing,so I think > the keycode is correctly reported.there maybe some code I need to add? > Anybody knows how to? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---