blackcj / androidcustomkeyboard Goto Github PK
View Code? Open in Web Editor NEWAndroid custom keyboard with predictive text.
Home Page: http://www.blackcj.com/blog/2016/03/30/building-a-custom-android-keyboard/
Android custom keyboard with predictive text.
Home Page: http://www.blackcj.com/blog/2016/03/30/building-a-custom-android-keyboard/
Can I have some example to use this softKeyboard.
The letter case switching is not sensitive, there will be no response to click switch, it is easy to repeat.
how can i avoid blocking of keyboard when key popup appers. it should not block the whole keyboard UI
whenever i treid to enter somthing , the application get crashed.Please Fix this Prblem.
Could not identify launch activity: Default Activity not found
Error while Launching activity
Please help me
Am already build complete and select to default keyboard
and find some edit text then touch some button and Crash
if you see this plz help me ? Thx a lot
12-18 17:38:17.398 29084-29102/com.blackcj.customkeyboard E/GED: Failed to get GED Log Buf, err(0)
12-18 17:45:37.137 29084-29084/com.blackcj.customkeyboard E/InputEventReceiver: Exception dispatching input event.
12-18 17:45:37.141 29084-29084/com.blackcj.customkeyboard E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.blackcj.customkeyboard, PID: 29084
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.textservice.SpellCheckerSession.getSentenceSuggestions(android.view.textservice.TextInfo[], int)' on a null object reference
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR On 3 Line !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at com.blackcj.customkeyboard.SoftKeyboard.updateCandidates(SoftKeyboard.java:584)
at com.blackcj.customkeyboard.SoftKeyboard.handleCharacter(SoftKeyboard.java:652)
at com.blackcj.customkeyboard.SoftKeyboard.onKey(SoftKeyboard.java:557)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR On 3 Line !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at android.inputmethodservice.KeyboardView.detectAndSendKey(KeyboardView.java:828)
at android.inputmethodservice.KeyboardView.onModifiedTouchEvent(KeyboardView.java:1351)
at android.inputmethodservice.KeyboardView.onTouchEvent(KeyboardView.java:1214)
at android.view.View.dispatchTouchEvent(View.java:8593)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2171)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2171)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2171)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2171)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2519)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2171)
at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2545)
at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1830)
at android.app.Dialog.dispatchTouchEvent(Dialog.java:778)
at android.inputmethodservice.SoftInputWindow.dispatchTouchEvent(SoftInputWindow.java:93)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2504)
at android.view.View.dispatchPointerEvent(View.java:8799)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4695)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4547)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4058)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4114)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4080)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4217)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4088)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4274)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4058)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4114)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4080)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4088)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4058)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6496)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6470)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6423)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6655)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:193)
at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:181)
at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:6614)
at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:6681)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:800)
at android.view.Choreographer.doCallbacks(Choreographer.java:603)
at android.view.Choreographer.doFrame(Choreographer.java:570)
at android.view.Choreographer$FrameDisplayEventRece
Word Suggestion does not work API 25 .Can you explain me the reason or can you provide any solution how to add word suggestion in this code.
Hi bro,
I just want to pop up the key which is pressed and automatically dismiss that pop up after pressed and also i want to auto dismiss pop up which is opening on long press of some keys ..
if you have any idea about how to implement this, please share it
11-24 00:11:00.801 31058-31058/com.blackcj.customkeyboard D/SoftKeyboard: REQUESTING: H 11-24 00:11:00.808 31058-31058/com.blackcj.customkeyboard E/InputEventReceiver: Exception dispatching input event. 11-24 00:11:00.808 31058-31058/com.blackcj.customkeyboard E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback 11-24 00:11:00.810 31058-31058/com.blackcj.customkeyboard E/MessageQueue-JNI: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.textservice.SpellCheckerSession.getSentenceSuggestions(android.view.textservice.TextInfo[], int)' on a null object reference at com.blackcj.customkeyboard.SoftKeyboard.updateCandidates(SoftKeyboard.java:584) at com.blackcj.customkeyboard.SoftKeyboard.handleCharacter(SoftKeyboard.java:652) at com.blackcj.customkeyboard.SoftKeyboard.onKey(SoftKeyboard.java:557) at android.inputmethodservice.KeyboardView.detectAndSendKey(KeyboardView.java:828) at android.inputmethodservice.KeyboardView.onModifiedTouchEvent(KeyboardView.java:1351) at android.inputmethodservice.KeyboardView.onTouchEvent(KeyboardView.java:1209) at android.view.View.dispatchTouchEvent(View.java:9349) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2559) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2260) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2559) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2260) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2559) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2260) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2559) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2260) at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2559) at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2260) at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2453) at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1755) at android.app.Dialog.dispatchTouchEvent(Dialog.java:787) at android.inputmethodservice.SoftInputWindow.dispatchTouchEvent(SoftInputWindow.java:93) at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2402) at android.view.View.dispatchPointerEvent(View.java:9590) at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4424) at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4280) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3804) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3863) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3829) at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3959) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3837) at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4016) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3809) at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3863) at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3829) at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3837) at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3809) at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6138) at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6106) at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6060) at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6241) at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:216) at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:323) at android.os.Looper.loop(Looper.java:144) at android.app.ActivityThread.main(ActivityThread.java:5845) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
Please help me
Hi,
Thanks for your repo, it was very useful to start with custom keyboard development. Recently, with introduction of Android 7.0 (API level 24), I noticed that when you long click top row keys, popup layout is missing. Well, I assume it is being showed, but it is drawn outside of keyboard boundaries, thus it is invisible. Currently looking for a solution, do you have any ideas? Thanks in advance.
Hi,
Thanks for open-sourcing this keyboard! Your blog suggests it is under MIT license but I do not see a license here - can you please confirm if MIT applies here?
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.