Inputs not working in Android Emulator - android

I am using Phonegap 1.9.0 in Android 4.1 with the following simplified index.html page:
<html>
<head>
<script type="text/javascript" src="cordova-1.9.0.js"></script>
</head>
<body>
<input type="text" name="somethings"></input>
</body>
</html>
The app comes up fine, but when I give focus to the input and try to give it text, nothing gets entered.
The OS acts as if I am pressing keys (on the virtual keyboard) because it is suggesting spelling corrections and the keyboard UI responds... but nothing makes it into the input field.
What am I missing?

Apparently this is a bug in PhoneGap 1.9.0, and has been fixed for the upcoming 2.0 version
https://groups.google.com/d/msg/phonegap/rEo8IjPY28Q/SOUWO7x6MfAJ

Add this two lines of script in html file and try:
Ext.Loader.setConfig({ disableCaching: false });
Ext.Ajax.setDisableCaching(false);

Is Hardware keyboard support explicitly enabled for your Emulator AVD. Please refer to this question for details : Keyboard stoped working on Intel x86 Android emulator after upgrading to ADT 20

try this:
in AndroidManifest.xml.
android:hardwareAccelerated="true"

Please type with softkey, instead of emulator keys. It should work.
Emulator keys may not work some times. What you can try is add "Keyboard support" while creating emulator.
AVD manager -- > select your emulator -- Edit .. Hardware section
click New button select "Keyboard support' from property dropdown.
double click on no to show yes/no drop down and set it to YES.

I just had the same issue - I use Titanium .
I'm on an Ubutnu, so this is how I fixed it: Titanium -> Window menu -> AVD Manager -> highlighted my emulator I want to fix -> click "Edit..." button -> at the bottom, there is a "Hardware" section -> click "New.." -> then find "Keyboard Support" option in the dropdown -> Hit OK -> under the "Hardware" section again, highlight the "Keyboard support" item you just added and in the "Value" column change it to "yes" -> click off or click on another property list in the "hardware" box (this seems to apply the change) -> click "edit AVD" button.
This seemed to fix it for me.

Related

Android Studio: Enter key won't create new line where block will [duplicate]

In Android Studio, my cursor is white rectangle. I'm cannot write anything. And changed my keyboard button actions.
h-->left arrow j-->down arrow k--> up arrow l-->right arrow
How can I fix problem or can I reset Android Studio settings?
Just got the same problem as yours. And this is the solution:
Go to File > Settings > Editor > General > Appearance, then uncheck the Use block caret
Try fn + ins. That worked for me.
Go to settings and plugins and just disable the IdeaVim plugin it works in 2020.itx also occurs due to this extension.
In windows, win+insert worked for me.
Presse Fn+0. It will work instantly.
go to plugins and disable IdeaVim then restart android studio it will be ok ...
Press Fn + Del on your keyboard together.
Explanation: Its because Delete key on keyboard has Insert function. So pressing Del along with Fn key will enable Insert mode within your editor from Overwrite mode as in your case.
It's ins in the latest version of Android Studio.
In windows if you press INSERT key cursor mode will get change,use WINDOWS + INSERT to get back into normal mode
For mac users just right click and deselect "Column selection mode" or press Shift + Command + 8
Just restart Android Studio and voilĂ  !
None of the other solutions worked for me (Windows 7, maybe with an inactive Lock Num key).

Ctrl + Space Not Working Properly Android Studio

i am facing problem in android studio. In eclipse when i want to use class like Intent, then i write intent starting with lower case it give me suggestion box indicating class name Intent, but in android studio if i type intent starting with lower case it does not Provide Suggestion class name Intent.Thanks in advance.
In my case Ctrl + Space was overloaded by mac shortcuts. And even in the case, I disabled them, they conflict with Android Studio.
So, I gave them another keys and it solved the problem.
Go to the System Preferences -> Keyboard -> Shortcuts -> Input Sources and use new keys for them.
The problem is that Android Studio has different key binding than Eclipse, but you can set the key binding to be the same as in eclipse in android studio settings. Also by default ctrl + space is case sensitive in Android studio, you need to turn that off too.
Move to File -> Settings -> Keymap and change keymaps settings to eclipse so that you can use the short cut keys like in eclipse.
You can set 'Case sensitive completion' to 'None' in IDE Settings > Editor > Code Completion.
That should do it :)
File --> Settings --> Editor --> General --> Code Completion --> Case sensitive completion --> None

android studio ctrl + space opens documentation window

I have updated my Android Studio to the newest version, but now when I call the auto-completion/suggestions with CTRL+SPACE the suggestion box opens but the documentation window opens as well.
Has anyone experienced this and know how to disable the opening of the documentation window?
I'm using Android Studio 0.8.1 on OSX and have been experiencing the same irritating behavior.
The answer by #daniel-gabriel was not was I was looking for.
A better solution seems to be to go to Preferences > IDE Settings section > Editor > Code Completion (in AS 1.2.2 located in Preferences->Editor->General) and unticking the option Autopopup documentation in (ms):
Ctrl-Q toggles between doc window states (when using the default keymap).
Possible states are:
-Hidden
-Shown to the side of the auto-complete list
-Docked as one of the tabs
If you have a different keymap, you can search for this action in Settings -> Keymap. The action is called "Quick Doc".
For ubuntu 14.04 :
File > Settings > Editor > General > Code Completion
And unticking Autopopup Documentation will hide it.
For Windwos && Linux (ubuntu) :
File > Settings > Editor > General > Code Completion
For Mac :
Android Studio > Preferences > Editor > General > Code Completion
1. unChecked : AutoPopup documentation (in CodeCompletion)
2. unChecked : AutoPopup (in Parameter Info)
On Mac OSX, to restore the Documentation window to an auto-hide popup, toggle the popup window toolbar to checked state, from the popup windows gear icon, and then click "Restore Popup" icon in the documentation window toolbar.
I prefer the quicker solutions...
Press Ctrl + Space and let the "Documentation" window pop-up.
1) Click on the Settings icon and uncheck all the options except "Docked Mode".
2) Now push documentation window to the right, so as to make it invisible.
With this even though with press of "Ctrl + Space", internally command will pass
to open the Documentation Window but it will not be visible and interfere with the
workspace.
I hope that helps. Happy Coding...

InAppBrowser Not Showing Keyboard [Cordova 2.3.0]

I'm using the new InAppBrowser by Cordova 2.3.0.
There are some issues related to it.
First : When I click on the address bar to change the url, the keyboard isn't displayed [I run it on Android].
It only works when I click for a long time inside the textbox & choose select all , copy & paste ... then the keyboard is displayed [ & sometimes even when I do this it's not displayed].
Second: When I open a pdf file from the browser, it doesn't open ... Why ?
Thanks
The PDF issue can be fixed by setting the bridge mode to iframe
the cordova issue can be found here

Keyboard shortcurts for Android Emulator?

I just do this in android emulator for copying and pasting the data in edittext.
Ctrl + C = Copy
Ctrl + V = Paste
But it didn't works. So, i need to know if these shortcuts are working or not in emulator. Or, any other special shortcuts available for android emulator. Anyone knows this means, help me to find out the problem? Hope this will very useful for me. I'm working on Windows 7 Professional OS.
You can see the shortcuts by clicking on the "more" button:
And going to the "Help" tab:
For more information: Android Emulator.
You can check current config from console
emulator -help-keys
When running the emulator, use the following keypresses:
Ctrl-H Home button
Ctrl-M Menu (Soft-Left) button
Ctrl-Backspace Back button
Ctrl-Escape Power button
Ctrl-Equal Volume up button
Ctrl-Minus Volume down button
note that NumLock must be deactivated for keypad keys to work
Copy the text you want:
Ctrl + C = Copy
Then when the emulator is in focus, paste using:
Ctrl + V = Paste
Then in the edit text that you want, long click on the field until you see the emulator paste button pop up above your cursor. Click that and it should work.
In the Android Studio Emulator the ctrl+v doensn't works, just hold the left mouse button for a second and paste menu will appear (in textbox etc.).
For Mac OS, the most important shortcuts are:
Cmd + Backspace: Back button
Cmd + O: Overview (The square button)
Cmd + Shift + H: Home (The center button)
You can see the rest from the Triple Dot menu, go to Help section.

Categories

Resources