1. Check out our companion app, Forums for Android! Download from Google Play

Bluetooth keyboard reports "KEYCODE_UNKNOWN"

Discussion in 'Android Accessories' started by magmatic, Dec 30, 2012.

  1. magmatic

    magmatic New Member
    Thread Starter
    5

    Dec 30, 2012
    3
    0
    5
    Male
    I got a shiny new bluetooth keyboard for use with my Android phone.

    The right shift button actually launches the browser instead of acting like a shift button, which is very inconvenient, so I edited /system/usr/keylayout/Generic.kl and /system/usr/keylayout/qwerty.kl to change the mapping.

    I have a little app that simply displays the information from keystrokes, and it now reports that the keyCode is KEYCODE_UNKNOWN for every key I press. The keyboard doesn't work at all now.

    Can someone point me to an answer or have some advice for me?

    Thanks in advance.

    p.s. Samsung Infuse 4G (SGH-I997). CyanogenMod. Android 4.1.2. No carrier.
     

    Advertisement

  2. JoelSmith

    JoelSmith New Member
    5

    Jan 2, 2013
    1
    0
    5
    I am facing the same problem on my Samsung also.Do any one have solution for it??
    ___________________________________________________________
     
  3. magmatic

    magmatic New Member
    Thread Starter
    5

    Dec 30, 2012
    3
    0
    5
    Male
    Try following the instructions here:
    http chris [dot] boyle [dot] name/2010/08/android-keymaps

    or here:
    http www [dot] mobileread [dot] com/forums/showthread.php?t=159538

    You'll need to root your phone or install adb or something.

    And if it stops working, make sure your file permissions are right!
     
  4. Don't mean to Bump your thead. Will the Keyboard work along with a head set or do you have to pick one or the other?
     
  5. magmatic

    magmatic New Member
    Thread Starter
    5

    Dec 30, 2012
    3
    0
    5
    Male
    If my bluetooth keyboard is plugged in, it works to type letters with it, and the other soft keyboard doesn't pop up. I haven't tried both. I suspect it would work just fine.
     

Share This Page

Loading...