Stop on screen keyboard appearing for Android Emulator? - android

I am using the AVD manager in eclipse. Is there a setting that I can use to stop the on screen keyboard appearing when an input field has focus?
I tried has hardware keyboard = true, but then the emulator doesn't seem to start at all :-S

mstoic's answer works, but with one problem: Google voice typing gets enabled with no way to get rid of it.
Not sure if this is available in emulators of all Android versions, but I found this in Settings -> System -> Languages & Input -> Physical keyboard (API 29 emulator). It worked for my use case.

The emulated device should have a physical keyboard, therefore negating the need for a soft keyboard.
I tried it out now and this configuration combination works for me:
hw.keyboard=yes
hw.touchScreen=no
The AVD has a physical keyboard, but no touchscreen, therefore only the physical keyboard can be used for text input, and the emulator does not show the soft keyboard.

Simply disable the Gboard app on your emulator.
To do that, go to Settings > Apps > Gboard, and then click the "DISABLE" button.
If Gboard is not visible, make sure you select the three dots in the top right corner and select the "Show system" option.
In some apps, you may see the Voice input box instead of the keyboard, you can disable that too by disabling the Google app in the same way you disabled Gboard.

Related

Display Keyboard for EditText in Emulator (GenyMotion) Android 4.3

Does anybody know how to display the keyboard in the emulator when the EditText field has focus. I have tried so many solutions but none of them work. I am working in android 4.3 Jelly Bean. The Emulator I am using is GenyMotion. I would also like to know how to hide the keyboard when the EditText field loses focus. I assume however if the keyboard does not appear in the emulator it won't appear when testing on the device.
Any help much appreciated
Just check the details of your emulator. Soft Keyboard won't be displayed if you have checked the option "Hardware Keyboard Present", uncheck that option. And it will automatically displayed on the device since device doesn't have hard keyboard.
Close emulator -> Setting button -> Check Use virtual keyboard for text input
run Genymotion as the application from windows or mac (not from android studio plugin)
then select the settings sign on the right of the virtual device you have installed from the virtualdevicelist
choose the 'use virtual keyboard for textinput'
then close the application.
this worked for me in genymotion 2.6.0
Try this it work for me:
GO to settings menu ->Language&Input->turn off the Hardware Physical keyboard.
First of All close Genymotion emulator.
Then Start Genymotion Application
From left side menu open Filters -> Source -> Genymotion Now check the checkBox of Genymotion if already unchecked.
Then from installed devices select three doted icon -> Edit Then in edit window go down in Android System Option And check the checkBox of Use virtual keyboard for text input
For new versions of Genymotion (mine is 3.1.0),
Right click on your virtual device and click "edit"
Then choose "Use virtual keyboard for text input" and click "CONFIRM"

Where is Soft Buttons on KitKat Emulator?

I have updated Android SDK to KitKat and created a KitKat emulator but I can't see any soft button in it. I tried to scroll bottom-up with no success. Do you know how can I see soft bottons? Is there any shortcut?
If you want to see software (on-screen) keyboard you have to disable the "hardware keyboard present" in your AVD configuration.
Andrei.
I think so you have not created the emulator perfectly My Friend
Look over the configuration and options Check it thorough

Disable Android keyboard

When I am trying to type into an EditText in the emulator, it does not allow me to enter with the computers keyboard and the onscreen keyboard always pops up.
Is there a way to disable to the keyboard from popping up and allow entry from computers keyboard instead?
thanks
Try this:
Eclipse > Window menu > AVD Manager
Select your virtual device and click Edit
Under Hardware, Click New
Select Keyboard Support then click OK
Edit its value to yes
Now you have to click off onto another item in the list, like "Abtract LCD Density" or something. This seems to make the UI keep the "yes" change.
[Source]
Go to config.ini file in the AVD's local directory and set hw.keyboard to "NO".
Or you can update your emulator through command line using following command:
android update -avd <avd_name> [-<option> [<value>]] ... [-<qemu args>]
Good luck with Android
in simple way,
select your AVD from AVD manager
click Edit check "Keyboard Hardware Present"
now start your device. its done.
goto AVD manager -> select your device -> click settings -> check mark the "Hardware keyboard present" option -> restart your virtual device.
A slight correction for your question, It is not on-screen keyboard but its soft keyboard (Keyboard from emulator called soft keyboard).
But if you want to disable soft keyboard from you emulator kindly disable 2 things from your emulator, Android Keyboard (AOSP) and Google App.
From your emulator Go to Settings > Apps > and disable Android Keyboard (AOSP) and Google App. NOTE: By disabling Google App you may not use some Google App function, but you can Enable it back anytime.
Image below

Why does the Soft Keyboard appear?

I'm using the Android emulator to test my first Android application. While there is a functioning hard keyboard at the right side of the emulator window, the soft keyboard shows up when editing in an EditText control.
I'm aware of the option to hide the soft keyboard by using an instance of InputMethodManager, however I'm wondering why the soft keyboard does appear at all (when the hard keyboard is available).
To me, as a user, the soft keyboard in this case is rather distracting, hence I'd like to get rid of it if useful. - This question is about the practical context (i.e., is there any use of the soft keyboard when there is a hard keyboard, do real-world devices behave similarly to the emulator) and about general strategies to address the issue.
Thanks. I'll be upvoting any helpful hints.
On my G1, when the hard keyboard was opened, the soft keyboard didn't appear. But I'm not sure whether a device which ALWAYS has a keyboard opened (like the Samsung Galaxy PRO if I'm not mistaken) does the same.
Since the emulator doesn't have a slide keyboard, I think that's the case for this behavior.
With a touch screen device + hard keyboard you have the flexibility to use both. On most devices with hard keyboards the keyboard has to be dragged out. It's much easier to just tap the screen. If you want to type a lot you would take the trouble to slide the keyboard out.
Android gives you the flexibility to program for all these behaviors.
Actually, the AVD emulator does have a slide-out keyboard.
The AVD option "Keyboard support" indicates whether the emulated device has any form of physical keyboard. The option "Keyboard lid support" indicates whether the device has a keyboard that can be opened or closed (slid out or what have you).
As far as actually "opening" and "closing" the keyboard on a device set up with these options,
you need to switch the orientation which is generally what you do with real-world slide-out-keyboard phones, e.g. the original Droid:
Original Droid with slide-out keyboard open
In the emulator, you control this orientation change with Ctrl+F11/Ctrl+F12 or 7/9 (on the number pad only, with NumLk off).
You can confirm the keyboard opening and closing states by checking the value getResources().getConfiguration().hardKeyboardHidden == config.HARDKEYBOARDHIDDEN_YES
As far as whether the soft keyboard appears or not, it appears to me that handling such things is up to you as the programmer. Here's an example you can try in AVD:
Set up an emulator with "Keyboard support" and "Keyboard lid support" both set to yes.
Launch the emulator, then open Android's built in Messaging app.
Click in one of the text boxes - the soft keyboard should show up.
Switch the orientation of the emulator with Ctrl+F12 - the soft keyboard should now disappear
Note there seems to be a problem with the emulator itself, that switching back to portrait mode doesn't cause apps to redraw themselves back to portrait layout. but they will switch back to closed keyboard mode, which yields some odd, sideways-y behavior.
For an example of code to catch the keyboard opening/closing events, check out: http://www.how-to-develop-android-apps.com/how-to-detect-screen-orientation-change-in-android/
After testing on real world devices; On the motorola milestone that has a sliding keyboard that if it's open the soft keyboard is not shown, but when it's closed the soft keyboard is shown. On the HTC Cha-Cha, that has a permanently shown keyboard, the phone always uses the hardware keyboard. Even when in landscape and the hard keyboard would be very difficult to use it doesn't show a soft keyboard (Even after installing a soft keyboard I was unable to select it for use under Keyboard & Language Settings).
For additional information about the phone you can use the following.They will return the keyboard type and whether or not it is a hard keyboard and shown. Note: Phones without a hard keyboard that I've tested report that hardKeyboardHidden=2; (Which indicates hidden=yes), but type reports as soft keyboard which makes sense.
Configuration config = getContext().getResources().getConfiguration();
int keyboardHidden=config.hardKeyboardHidden;
int keyboard=config.keyboard;
http://developer.android.com/reference/android/content/res/Configuration.html#HARDKEYBOARDHIDDEN_NO

How to input ampersand(&), asterisk(*) and other characters in android 2.1 emulator?

I'm trying to add a new account in android 2.1 emulator. When I'm entering my password, I found it's impossible to input some symbols, such as #,$,&,*, except #. For example, while I press shift+7, only 7 is shown in the password textview.
Any suggestion?
Entering these special characters into the emulator works correctly for me (Linux, US International keyboard layout). Which platform are you using? Have you tried the emulator's on-screen keyboard?
Have you tried toggling the input method from alpha to numeric/symbol?
I had the same problem. On your phone, you have to ensure that the settings for the keyboard/locale match your computer settings. Find the Settings icon and go from there.
I couldn't enter special characters with the pop-up soft keyboard, the PC's hardware keyboard, or the gray keyboard to the right of the emulator window on 2.3.3 emulator (API10).
However, when I tried on the 4.0.3 (API15) emulator, the PC's hardware keyboard entered symbols without a problem. The gray keyboard to the right of the window would just repeat keys if I held them down to get to the symbols. The soft keyboard wasn't available on my configuration and I didn't spend any time trying to configure it to do so.

Categories

Resources