Sorry mate, it seems that two user buttons left to space do not fire any "keyCode" events, I've just tested it. Only "Lang" button, having keyCode 99, but by some weird reason it might only be available since Gingerbread.SimWhite wrote:+1lexunus wrote:BTW, key remapping would be really cool if you manage to build it, we have some useless hardware buttons that could be mapped to dots, periods, lang switches, etc.
For example map user button for "?/!" really need at russian layout.
HTC Desire Z hardware keyboard
Re: HTC Desire Z hardware keyboard
-
- Posts: 10
- Joined: Thu Jan 27, 2011 10:30 am
- Phone: HTC Desire Z, Android 2.2
- Location: Internet
- Contact:
Re: HTC Desire Z hardware keyboard
As I now Desire Z and G2 has different key layouts. Are you tried at G2?
In any case, I'm try to see codes some later, unfortunately now there is no cable.
In any case, I'm try to see codes some later, unfortunately now there is no cable.
Last edited by SimWhite on Fri Feb 04, 2011 10:43 am, edited 1 time in total.
Re: HTC Desire Z hardware keyboard
I'm on Desire Z, just like you.SimWhite wrote:As I now Desire Z and G2 has different key layouts. Are you tried at G2?
- cyril
- Developer
- Posts: 2079
- Joined: Tue Feb 02, 2010 4:02 pm
- Phone: Nexus One 2.3
- Location: Nice, France
Re: HTC Desire Z hardware keyboard
OK thanks for the key code. Can you tell me if it works in the latest beta?
Cyril
Re: HTC Desire Z hardware keyboard
Confirmed, it do work with this beta.cyril wrote:OK thanks for the key code. Can you tell me if it works in the latest beta?
Also, when investigating the keyCode for this Lang button with Log Collector (it was your production version from Market), I've noticed SmartKB exceptions when closing the hard keyboard:
02-04 13:11:35.260 D/SmartKeyboard( 5002): hideWindow java.lang.Exception
02-04 13:11:35.260 D/SmartKeyboard( 5002): at net.cdeguet.smartkeyboardpro.SmartKeyboard.hideWindow(Unknown Source)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at android.inputmethodservice.InputMethodService.setCandidatesViewShown(InputMethodService.java:1008)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at net.cdeguet.smartkeyboardpro.SmartKeyboard.setCandidatesViewShown(Unknown Source)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at net.cdeguet.smartkeyboardpro.SmartKeyboard.onStartInput(Unknown Source)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at android.inputmethodservice.InputMethodService.doStartInput(InputMethodService.java:1441)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at android.inputmethodservice.InputMethodService$InputMethodImpl.startInput(InputMethodService.java:354)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:152)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at android.os.Handler.dispatchMessage(Handler.java:99)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at android.os.Looper.loop(Looper.java:123)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at android.app.ActivityThread.main(ActivityThread.java:3812)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at java.lang.reflect.Method.invokeNative(Native Method)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at java.lang.reflect.Method.invoke(Method.java:507)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
02-04 13:11:35.260 D/SmartKeyboard( 5002): at dalvik.system.NativeStart.main(Native Method)
02-04 13:11:35.290 D/SmartKeyboard( 5002): hideWindow java.lang.Exception
02-04 13:11:35.290 D/SmartKeyboard( 5002): at net.cdeguet.smartkeyboardpro.SmartKeyboard.hideWindow(Unknown Source)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at android.inputmethodservice.InputMethodService$InputMethodImpl.hideSoftInput(InputMethodService.java:371)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:179)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at android.os.Handler.dispatchMessage(Handler.java:99)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at android.os.Looper.loop(Looper.java:123)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at android.app.ActivityThread.main(ActivityThread.java:3812)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at java.lang.reflect.Method.invokeNative(Native Method)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at java.lang.reflect.Method.invoke(Method.java:507)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
02-04 13:11:35.290 D/SmartKeyboard( 5002): at dalvik.system.NativeStart.main(Native Method)
Re: HTC Desire Z hardware keyboard
I'm on Android 2.3.2 Gingerbread, with latest CyanogenMod CM7 nightly.SimWhite wrote:Nope. It doesn't work for me.
"Lang" button language switch works perfectly for me.
- cyril
- Developer
- Posts: 2079
- Joined: Tue Feb 02, 2010 4:02 pm
- Phone: Nexus One 2.3
- Location: Nice, France
Re: HTC Desire Z hardware keyboard
OK so I will release 3.13 as is, and we will need to understand why it doesn't work on Android 2.2.
By the way the "exceptions" are just a trick to display the stack in debug mode, nothing to worry about
By the way the "exceptions" are just a trick to display the stack in debug mode, nothing to worry about
Cyril
-
- Posts: 10
- Joined: Thu Jan 27, 2011 10:30 am
- Phone: HTC Desire Z, Android 2.2
- Location: Internet
- Contact:
Re: HTC Desire Z hardware keyboard
I'm on stock firmware 2.2 (1.34). I'm tried to install Log Collector. There is no keycode event for this button ;( I can upload logs.
Re: HTC Desire Z hardware keyboard
I guess it is clear - this keyCode is supported from API Level 9 which precisely is 2.3 Gingerbread. That's why it will have no effect on Froyo, unfortunately.cyril wrote:OK so I will release 3.13 as is, and we will need to understand why it doesn't work on Android 2.2.
By the way the "exceptions" are just a trick to display the stack in debug mode, nothing to worry about
But I'm glad you could manage to add this feature anyway, it works for me. Thanks a lot, happy I bought this keyboard.