Many thanks to your response! Ethan
On 4月21日, 下午4時43分, sein <fang.sh...@zte.com.cn> wrote: > You just need to report a key code KEY_MEDIA > > On Apr 16, 12:14 pm, Ethan <lawrence....@gmail.com> wrote: > > > I have implemented my headset button irq for our device. > > But I don't know how to notify kernel/Android that I want to answer > > the incoming call by the headset button. > > > Under Android, there is "InCallScreen.java" has OnKeyUp to answer the > > incoming call. > > How can I achieve this goal? > > 1. Add myown call key in include\linux\input.h which can notify the > > kernel/android and answer the incoming call > > 2. Send android keyevent to notify android to answer the call by a > > certain "manner" > > 3. Others? > > > Please help! Thanks in advance! > > > Ethan --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -~----------~----~----~----~------~----~------~--~---