HTC Desire Z hardware keyboard

For anything else related to Smart Keyboard
lexunus
Posts: 13
Joined: Wed Feb 02, 2011 10:30 pm

Re: HTC Desire Z hardware keyboard

Post by lexunus »

SimWhite wrote:
lexunus 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.
+1
For example map user button for "?/!" really need at russian layout.
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
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

Post by SimWhite »

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.
Last edited by SimWhite on Fri Feb 04, 2011 10:43 am, edited 1 time in total.
lexunus
Posts: 13
Joined: Wed Feb 02, 2011 10:30 pm

Re: HTC Desire Z hardware keyboard

Post by lexunus »

SimWhite wrote:As I now Desire Z and G2 has different key layouts. Are you tried at G2?
I'm on Desire Z, just like you.
User avatar
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

Post by cyril »

OK thanks for the key code. Can you tell me if it works in the latest beta?
Cyril
lexunus
Posts: 13
Joined: Wed Feb 02, 2011 10:30 pm

Re: HTC Desire Z hardware keyboard

Post by lexunus »

cyril wrote:OK thanks for the key code. Can you tell me if it works in the latest beta?
Confirmed, it do work with this 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)
SimWhite
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

Post by SimWhite »

Nope. It doesn't work for me.
lexunus
Posts: 13
Joined: Wed Feb 02, 2011 10:30 pm

Re: HTC Desire Z hardware keyboard

Post by lexunus »

SimWhite wrote:Nope. It doesn't work for me.
I'm on Android 2.3.2 Gingerbread, with latest CyanogenMod CM7 nightly.
"Lang" button language switch works perfectly for me.
User avatar
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

Post by cyril »

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
Cyril
SimWhite
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

Post by SimWhite »

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.
lexunus
Posts: 13
Joined: Wed Feb 02, 2011 10:30 pm

Re: HTC Desire Z hardware keyboard

Post by lexunus »

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
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.

But I'm glad you could manage to add this feature anyway, it works for me. Thanks a lot, happy I bought this keyboard.
Post Reply