I am trying to control the behavior off a an IME keyboard.
For instance the keyboard I downloaded uses combinations of characters(
say if you press "ß" + "π" it suggests "∑"
I am making this example up.
I would like to turn off this feature.
Usually asian keyboards uses this feature.
I dont know the tech term for this. I looked at spannable but not very helpful.
Thanks
The Keyboard example that comes with the sdk shows how to do this, plus the keyboard that comes installed on the phone is open source.
Here is a link
If you have any specific questions after looking these over I am sure you will be able to find answers here! Good luck!
If the keyboard doesn't have the option to turn it off, then it probably cannot be done. I don't think there is such a option in Android that applies to all keyboards.
Related
What I need is to add a custom key to android keyboard. I know I can implement my own keyboard but implementing all the functionalities (dictionary, swipe, microphone button etc) sounds like a lot of work. I see two solutions:
modify system keyboard (I expect it not to be possible, but it's
sometimes good to ask :))
create my own keyboard but somehow deriving it from existing one
Is any of these possible? Any other ideas?
After an investigation, answers are:
not possible
not possible
:)
Is there a way to access Android's standard keyboard's auto-correct suggestions?
I have searched and searched through the Android APIs to no avail. This is close, but not quite there. Previous questions have been left unanswered, but I was hoping that maybe now it's possible?
If not, what's the next step from here? Do I...write my own dictionary? Buy one?
I need some help with a project i'm doing. Hopefully someone can help me :)
I need to change the sound or click the keyboard makes whenever i'm typing in an editText. I need the sound/click to be whatever sound i may prefer (in wave-, mp3- or whatever format).
So, a couple of questions:
Can i change this in the already implemented keyboard?
Or should i make my own keyboard?
if the latter is the case, how do i do that? Can i find the source code somewhere?
I have been looking at other questions regarding how to make your own keyboard. e.g. How do I make my own keyboard for an app in android?
And if i have to make my own keyboard i want to look like this. But how to do it?
Can i change this in the already implemented keyboard?
You can't... it's already built and some manufactures provide their own keyboard implementations.
Or should i make my own keyboard?
Yes, you must.
If the latter is the case, how do i do that? Can i find the source code somewhere?
There are some open source projects of Keyboard implementations... for instance:
https://github.com/g1011999/Gingerbread-Keyboard/
http://code.google.com/p/softkeyboard/
There you can learn how to write your own keyboard, which is completely different from writing a conventional app.
My suggestion is to create a new fork of the Gingerbread-Keyboard (this supports Android 2.2 or higher only)... and then implement that specific change you want. For one of my apps I did so, and it's far easier than implementing the keyboard from scratch.
I want to add the functinality of Home,Back,Searcha and Menu Hard keys via some soft keys which can be accessed anytime the device is up.
I know their are few applications available which already do this, but i wanted to know the way this can be implemented.
Any help would be appreciated.
As stated elsewhere, the SDK is not enough to emulate hardware buttons: you need to be able to modify or at least call system sources, so you should be compiling Android from sources.
That said you can emulate the software button by calling "injectKeyEvent" in IWindowManager like done in these examples:
http://java-admin.iteye.com/blog/813208 (chinese)
http://tinyurl.com/5spjxja (android-x86 patch)
I'd like to show my own IME in the Select input method chooser dialog like the Japanese IME and the Chinese IME. How can I do that?
I am new to Android. I have tested Greek IME and other IME. Although .apk is successfully uploaded. But can't show in it and how to choose own IME from this place.
What do I need to do in my code?
You probably need to activate the installed keyboards before you can select them in the Input Method menu. For this you need to open Settings -> Language & Keyboard and in this menu check the keyboards you would like to use. This probably should get your GreekIME running.
Now for coding your own soft keyboard, there is an example which is delivered with the Android SDK. You can find it in <Andoid SDK Base>/samples/SoftKeyboard. The process is a bit poorly documented, but when you get the example up and running you can start to tweak the example a bit and you should get the hang of it.
Nice writeup about
Onscreen Input Methods from developer.android.com
In part ...
What is an input method?
The Android IMF is designed to support a variety of IMEs, including soft keyboard, hand-writing recognizers, and hard keyboard translators. Our focus, however, will be on soft keyboards, since this is the kind of input method that is currently part of the platform.