This is unrelated to keycharmap files, which are used for converting key events to printable characters. Generally the Linux driver for the device should be reporting the key as the standard Linux key code, and there is a generic scan code -> key code mapping the platform has for turning those to Android key code.s
On Mon, Oct 11, 2010 at 8:34 PM, Ajith Kamath <[email protected]> wrote: > Hi > > I am facing a problem with Bluetooth Headset and KeyCharacter Mapping > When I press play/pause button from Samsung sbh-170 , its not getting > reflected in Phone. > I traced and came to know that , normally scan code of 164, keycode of 85 > is formed when i press Headset play/pause. And PhoneWindow manager will > intercept this and send ACTION_MEDIA_BUTTON if keycode =85 > (KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE). > > But keycode that I'm getting is 0 even when i press headset play/pause in > PhoneWindow Manager. Even in KeyInputQueue, the keycode that is obtained is > 0 > Does anybody when keycode gets generated?? > > Also I got following error in log : > > AVRCP: Send key 164 (1) fd=23 > WARN/KeyCharacterMap(2550): Can't open keycharmap file > WARN/KeyCharacterMap(2550): Error loading keycharmap file > '/system/usr/keychars/AVRCP.kcm.bin'. hw.keyboards.131077.devname='AVRCP' > WARN/KeyCharacterMap(2550): Using default keymap: > /system/usr/keychars/qwerty.kcm.bin > > Can this be a problem ? If so , how?? > Please suggest. > > Regards, > Ajith > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
