I download the released source code at 2008,Dec,30.
And I found an example of "soft keyboard" at path below.
"/development/samples/SoftKeyboard"
I tried to build it, and install the .apk file into device by steps
below.
1. make
2. cd /out/target/product/generic/system/app
3. adb install SoftKeyboard.apk
When I try to enable the "SoftKeyboard" input method, and I got an
error
information below.
01-06 08:38:54.683: ERROR/dalvikvm(273): Could not find method
com.example.android.softkeyboard.SoftKeyboard.getCurrentInputInfo,
referenced from method
com.example.android.softkeyboard.SoftKeyboard.handleBackspace
01-06 08:38:54.683: WARN/dalvikvm(273): VFY: unable to resolve
virtual method 128: Lcom/example/android/softkeyboard/
SoftKeyboard;.getCurrentInputInfo ()Landroid/view/inputmethod/
EditorInfo;
01-06 08:38:54.683: WARN/dalvikvm(273): VFY: rejecting opcode 0x6e
at 0x0031
01-06 08:38:54.683: WARN/dalvikvm(273): VFY: rejected Lcom/example/
android/softkeyboard/SoftKeyboard;.handleBackspace ()V
01-06 08:38:54.683: WARN/dalvikvm(273): Verifier rejected class Lcom/
example/android/softkeyboard/SoftKeyboard;
01-06 08:38:54.683: WARN/dalvikvm(273): Class init failed in
newInstance call (Lcom/example/android/softkeyboard/SoftKeyboard;)
01-06 08:38:54.713: DEBUG/AndroidRuntime(273): Shutting down VM
The message indicates the getCurrentInputInfo() method not found in
SoftKeyboard class.
However, the SoftKeyboard is inherit from
android.inputmethodservice.InputMethodService, and the
getCurrentInputInfo() be implemented by InputMethodService.
I don't know why the VM can't found the getCurrentInputInfo() method.
Please help me to resolved this problem, I has to test some thing by
"SoftKeyboard" input method.
Thanks.
Alger, Lin
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---