Physical keyboard inputs wrong characters on Android Emulator - android

I have been using the physical keyboard on the Android Emulator for a while, but now something is wrong and I get strange symbols when I press any character; it does not matter which keyboard (en/es/fr) is displayed on the screen. Does anyone know why this is happening?

For mac
Move your cursor to end.
Use Option + Shft + Left arrow key to select whole text.
Press backspace to delete it and it will automatically switch back to normal english characters.

Try using this shift+alt+o. This helped me solve the issue.

Cold starting the emulator fixed things for me.

At the end, I uninstalled and installed the emulator again, and now it works fine. I think that should be there another solution, but so far it's the only thing that keep the keyboard working normally.

I was using the accepted answer but using a special shortcut every time was getting annoying. So I poked around a bit and found the permanent solution. Go to the settings on the android emulator keyboard. (You can long press the , character on the Gboard.) Once there, go to Advanced and disable Emoji with the physical keyboard. Cold boot and you should be good to go.

Another solution would be to disable the soft keyboard from bottom down icon.

Related

Android Emulator keeps crashing after button Press

My Android emulator crashes whenever I press keys on the pc keyboard or hit the emulator side buttons. the only part that works is the emulator mobile screen. This doesn't happen to just one device but to all emulators I use. This is really annoying cause whenever I press any key on the keyboard while the emulator screen is active it will instantly crash. But keystrokes won't crush it when text input is active on the emulator screen. The operating system I use is ubuntu but Windows fix is also useful.
I need help from someone who has managed to solve this problem before.
I'm pretty sure I got this error before too. Whenever I pressed a button, the emulator would just say "Saving State..." and just closes. The only solution I found to fix this was to delete the emulator and create a new one. It's not the most effective solution, but I couldn't find any other solutions.

Espresso - typeText() not working correclty, sometimes letters are missing

I start my login activity and I use in Espresso test:
onView(withId(R.id.username)).perform(typeText("USERNAME"));
I expect the text in the field to be "USERNAME", but sometimes I get "SERNAME", others "UERNAME".
Most of the times it works but sometimes it fails, specially after rebooting the phone.
Here is the sample code to reproduce the bug:
https://github.com/neoranga55/CleanGUITestArchitecture
The test phone uses Swift keyboard with double language typing enabled. Apparently this causes the first appearance of the keyboard after phone boot to be slow but also auto-correct in a weird way the first letters of a word typed by Espresso.
Solution: always use default system keyboard on testing device/emulator and make sure a software keyboard is enabled to avoid this other issue.
You can also try replaceText(). It should not be affected by the slow IME:
onView(withId(R.id.username)).perform(replaceText("USERNAME"));

Why is the physical keyboard not working in my Android app?

In my Android app, the soft keyboard is working properly, but the physical keyboard is not working. I could not find out the reason for this. Is it due to any coding mistake of my app, or my phone's issue?
if issue in emulator
then try this
this is android AVD manager issue.
go Window -> ADV manager
then select Emulator and press Edit Button
then go Hardware section and press on New
after press new select property Keyboard support and press OK
and Set Value TRUE
and is issue in phone then try this
i would go to settings>language & keyboard... and check you keyboard settings... see if "shortcuts" is ON... Also, try clearing out "Learned Words"... that usually helps with any OS keyboard issue... :-)
if not, then get 1-click Cleaner from Market... its free... download... install.. run it... afterward run, turn phone off... remove battery... wait 2 min... insert battery and turn on... work now?
if not again... then you may need to do a factory reset... yes this will earse any data you put on the phone... except the SD card and SIM---these 2 will not be touched... but the internal memory will be wiped to factory settings---the way it looked on day 1 minute 1 of when you first got the phone...
if factory reset dont help the issue... then call tmobile to get a replacement... the g2 is OLD and i highly doubt your warranty is still active... you may need to upgrade or get a insurnace repalcement.... both needs money!.... good luck!
Source(s):
Sincerely,

Keyboard shortcut for Android Emulator running on Mac OS X

I've searched around, and I just can't find certain keyboard shortcuts for the Android Emulator. Specifically,the equivalent of enter/click. I've found that fn+left arrow will move from highlighting one icon to another but no actions.
Just clicking the doesn't seem to have any effects on the Android emulator. (I'm running OS X Lion). Perhaps I need to configure something?
Any help is greatly appreciated!
I guess you don't have Keyboard support set to yes in you AVD (Hardware properties) and that's why your keyboard is not working.
Then most of the keys will work as expected.

I am keep getting message: Unfortunately "some chinese" has stopped

I am keep getting this each 10 sec. What is it about? How can I fix this?
This problem is not related to any app I created, it just happens on emulator I work on in eclipse. I thought it's some common 'error'. I may just lunch avd, unlock the screen and wait few sec for this message to comes up.
This is my very first contact with android emulator, so I am not that fluent, didn't know what else to post. I found logcat but it is empty.
These chinese characters say:"Google's PinYin input method",so I guess this problem is related to the input method(PinYin is a way to mark the pronunciation for a character with Latin letters) . It seems that this happens when you are inputting something in the TextView. On the emulator, there is a native Google PinYin input method and perhaps this app has something wrong. Please disable it or create a new emulator.
Actually, how is your app on a real device?
There is probably a Japanese keyboard trying to run, turn it off from Settings->Language & Keyboard
Being a couple of days into Android development, I encountered the same issue. It only began, however, after I was playing around with the system settings of the emulator. I could have sworn that I didn't change a thing in the languages and settings menu. But, since I did inspect it and this dialog did appear, I'm sure it did. My emulator has mucho latency due to the fact that my dev machine is a few years behind the times ( a good development practice btw.)
So, I did the following:
enable: system settings->Dev Settings and check Show cpu usage
this shows you all android processes running. You will see:
com.android.pinyin
just before the error.
google that error and hopefully come across this post.
go back into system settings->Language and input and change the default back to English.
I was having the same problem using the 4.0.3 WXGA800 emulator but could not disable the Chinese keyboard nor the Japanese IME keyboard since the check mark was greyed out (not blue). I was about to post a question when, by mistake, I clicked on the Default option, cycling through the different options until I came back to English (US). After that, fortunately the message stopped appearing.
I tried to post an image to show the check marks and the Default option, but as a new user was not able to.
I have the same problem as #Bobby, from Android +4 the check is unavailable. The solution was to disable the Chinese application. To make disable go to "Settings" > "Apps", tap on "ALL" option in the action bar tab on the top, and at the end of the list you will be found the application, then tap in the item, and in the next screen make click in "Force stop" button and "Disable" button.
This is my fix:
Settings > Language & Input > Keyboard and Input Methods > Default > English (US)
Changed default to another language and then back to English (US)
Message hasn't appeared for over 9000 seconds

Categories

Resources