Questions tagged [android-hardware-keyboard]

19 questions
5
votes
4 answers

React Native TextInput: no newline with hardware keyboard Enter key

We have a React Native TextInput component in our app. Using the virtual keyboard, pressing enter creates a new line. If we use a hardware keyboard (attached to an Android 6 tablet using an USB OTG adapter), the Enter key (the large one in the…
5
votes
1 answer

Avoiding Application Restart when Hardware Keyboard Opens

I am currently working on a multi-threaded game application for the Android platform... so far so good... I just got over a bug in my application which caused it to restart on orientation change (fixed by designating a specific orientation depending…
4
votes
0 answers

Android: Videoview media controller keys are not shown as focused when using D-pad

I am using a videoview to play videos in full screen. I have a hardware keyboard connected to my Android device. Now when I press 'enter' key while a video is being played in full screen, I get a media controls at the bottom. By default, the focus…
Code_Yoga
  • 2,968
  • 6
  • 30
  • 49
2
votes
1 answer

Android : How to prevent softkeyboard hidden when hardwarekeyboard input

I created EditText and applied it to the showSoftInput of InputMethodManager. When I enter a physical key, the keyboard is automatically hidden. I want to prevent the keyboard from automatically being hidden. I've tried the method below. 1. use…
2
votes
1 answer

Hide soft keyboard when an EditText field receives focus

I am currently developing an enterprise Android application, which is deployed on devices that have a hardware keyboard. Most of the EditText fields require numerical input, so naturally it is much more convenient and faster to enter the data via…
2
votes
0 answers

Can I programmatically disable/enable the physical keyboard?

I want to enable the soft keyboard when a scanner is plugged into the device. In order to do this I need to disable the hardware keyboard Is there a way to disable/enable the use of hardware keyboard in Android 3.0+ programmatically?
2
votes
2 answers

Detect input from software or hardware keyboard

I'm working in an Android app that must use a RFID tag reader. I'm using this reader as an extra device connected in my microUSB with an OTG wire. Android is detecting this device as an input keyboard. I would like to know if I can programatically…
acostela
  • 2,597
  • 3
  • 33
  • 50
1
vote
0 answers

How to implement the following in flutter: When Hardware Key Pressed > Do Something; when Released > Stop Doing Something

I'm trying to create a Flutter note-taking app for myself which will enable me to record and organise my voice notes. I want the functionality to be such: Screen is Off; When I long press the volume down button (or another hardware button) >> App…
1
vote
1 answer

Can't detect key press with hardware keyboard on android app (Kotlin)

I am creating a simple application for my android tv box, which uses a webview object to show some streaming urls and choose beetween them with PGup and PGdown of a remote control (an hardware keyboard). I am overriding method onKeyUp, but…
0
votes
1 answer

Tell Android to treat physical enter key the same as the on-screen "Search" key?

I set android:imeOptions="actionSearch" on an EditText. I was testing on the emulator, and pressing the physical enter key did not work as I expected. I thought it would have the same effect as clicking the Search button on the on-screen IME, but it…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135
0
votes
1 answer

Register hardware keyboard shortcuts in Android's help menu

Android supports external hardware keyboards as input, which may send keyboard shortcuts (e.g. Ctrl+A) in which there are some ways to program my app to accept shortcuts from external keyboards (e.g. like this: Custom keyboard shortcuts). I came…
LCZ
  • 589
  • 1
  • 9
  • 15
0
votes
0 answers

android : Physical keyboard language switch and mouse clicks do not work in EditText

Physical keyboard language switch and mouse clicks do not work in EditText. I have created EditText dynamically as shown below. EditText box = new EditText(this); box.addTextChangedListener(new TextWatcher() { @Override …
0
votes
1 answer

Android soft input behavior for KEYBOARD_12KEY, KEYBOARD_QWERTY, and KEYBOARD_NOKEYS

I was wondering if anybody here knows in what scenarios will Android show the user an on-screen soft keyboard, and how Android takes into account the different types of hardware keyboards available (KEYBOARD_12KEY, KEYBOARD_QWERTY, and…
0
votes
1 answer

Request fosuc in hamburger on key down events from hardware keyboard

When I press any key on my hardware keyboard hamburger icon took focus: How I can prevent this? UPDATED: I have a fragment with toolbar:
Alexey Nikitin
  • 604
  • 7
  • 22
0
votes
1 answer

How to not show overflow menu in the touch a hardware key

I am using toolbar, add option item in OnCreateOptionsMenu() and set showAsAction="always" so, 3-dot overflow icon does not show. is good work, but show overflow(popup) when i touch the hardware menu key. I use a hardware key, for other function.…
Andromer
  • 123
  • 2
  • 12
1
2