I have a listview application. When I run the application, setTextFilterEnabled() is working because there is a keyboard. I installed this application into a real Android phone. setTextFilterEnabled() is not working because of no keyboard. How it will work? The phone contains only four buttons and no keybord. How this is possble?
Or what should I do?
Try holding down the menu button. This brings up the virtual keyboard. If that works, you can give your users a hint (for example, using a Toast) that they can do that. Or, you can provide a button somewhere that pops open the virtual keyboard (have a look at InputMethodManager).
Related
I have an application that works fine with android "original" default keyboard but has issues with some custom keyboards.
Is it possible to always pop-up the android "original" keyboard regardless the has user installed a custom keyboard?
I know the best way is to write my own keyboard class but currently I don't have the time and I need a quick fix.
Thanks.
I'm writing a GWT-Web app. Now we are testing this web app on our Android Tablet.
Android 4.2.2
Browser: Chrome 37.0.2062.117
And here is the problem, if we klick into a textbox the keyboard open as expected. But after typing in one or two letters the keyboard hides automaticly.
Then you have to change the text box to get the Keyboard shown again.
Does any one have an idea why this happen ?
Thanks
Dominic
Virtual keyboard doesn't usually hide itself if window receives input focus, but try adding this to your code just to make sure.
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
I loaded the android Sample code for Softkeyboard onto my Nexus. It shows me the option of picking the Soft KeyBoard Service under settings->language->keyboard. I select the new service and also a language, but when i go to the web browser and focus on the url field I get the same system keyboard popping up, nothing different. Has anyone tried the sample project and got a different looking keyboard? Is there something I'm missing when running the apk?
Have you checked available input methods? Just touch and hold on any text field (<4.0) or open notification bar and choose input method while keyboard is opened.
I thought about implementing kind of a meta-soft-keyboard for android that first checks if a physical keyboard is connected (in my case a dock but bluetooth kbds should also be possible) and launches a specific other soft-keyboard if there isn't.
So:
Is there a way to get a list of all installed keyboards using the android API?
/edit: This seems to be possible using the InputMethodManager
Can I then call a specific one of these keyboards?
If there is no API solution, can it possibly be done on rooted phones/tablets?
Or do I have to implement my own full keyboard solution (or possibly fork/improve an existing open source one) that just doesn't pop up when there's a physical kbd connected)?
For those having similar troubles:
The best work-around solution I found so far is using the NULL keyboard and the Dock keyboard switcher apps. But the NULL keyboard currently only supports the english layout and the constant keyboard switcher popup gets kind of annoying... (IMO it's almost easier to just hide the keyboard everytime it appears)
Seems like it can be done by public boolean switchToNextInputMethod (IBinder imeToken, boolean onlyCurrentIme), but I don't know is it switching permanently or only for one time and this method is added only in Jelly Bean.
I am developing an Android application. What I find most annoying during testing is, that the emulator always pops up that on-screen telephone keyboard whenever I click into a text input field. Since I input my data with the keyboard anyway I find that most annoying. Can one switch that on-screen keyboard appearance off? Or can one change that so that it at least presents a mini-qwerty keyboard as my actual device does, not that old-fashioned T9 keyboard?
Michael
You can disable the virtual keyboard in Settings->Language.
If you change orientation of the emulator it won't popup (KEYPAD_7, Ctrl-F11).
If you use cursor keys instead of clicking the fields, probably won't popup either.
Whatever you do, keep in mind that in actual devices it usually pops up anyway.