An InputConnection is used in Android for an input method editor (IME) to communicate text changes to an editor (like EditText).
Questions tagged [inputconnection]
34 questions
1
vote
5 answers
D/InputConnectionAdaptor( 3218): The input method toggled cursor monitoring on
This is a part of form I use inside a card widget on my auth_screen.dart file:
child: Obx(() => Form(
key: _formKey,
child: SingleChildScrollView(
child: Column(
children: [
TextFormField(
…

Hasani
- 3,543
- 14
- 65
- 125
1
vote
0 answers
Random crash on InputConnectionWrapper
ArrayList> itemList;
btnSelectWiFi.setOnClickListener(v -> {
try {
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
builder.setTitle("WiFi");
ListView list = new…

Seraphim's
- 12,559
- 20
- 88
- 129
1
vote
0 answers
The InputConnection class does not work correctly on Huawei phones
When I press a button on the keyboard, the current visible text inside the textview is replaced by the last key pressed (and not added as I expected). That is, if I try to enter "12" when I press "1", everything will be fine, when I press "2", the…

MbProger
- 15
- 6
1
vote
1 answer
onCreateInputConnection is returning null for SearchView
I was trying to get the input connection of a SearchView. I wanna do this b/c i have an in app keyboard and whenever the user wants to search i will display my in app keyboard. For that purpose i am supposed to get the input connection of the…

FT Man
- 11
- 3
1
vote
1 answer
Android: What is an InputConnectionWrapper and what does it do?
I looked into the official documentation but there was only a single line telling me that it's a wrapper class for proxying calls to another input connection. I didn't understand what it said.
I want to know :
what actually is…

Hissaan Ali
- 2,229
- 4
- 25
- 51
1
vote
2 answers
view stuck on `commitText` method of InputConnection
I am committing text when user press key using the key code in InputConnection
but this method will hang the view and it will release after few milliseconds
if (getCurrentInputConnection() != null) {
…

Priyanka
- 3,369
- 1
- 10
- 33
1
vote
0 answers
Android custom InputConnection newly failing
I've got a custom webview that I use (via contenteditable) as a rich text editor. To accommodate a few things, I also have a custom InputConnection.
This has worked fine until just recently — I'm suspecting a recent Android/WebView update.
I…

KT_
- 978
- 11
- 26
1
vote
1 answer
Hardware BACK Btn not working first time
I have a number of fragments which have been added (not replaced) one on top of the other.
And they have also been added to the back stack expect the first one.
Fragment A -> Fragment B -> Fragment C
Hardware Back Btn press works fine when I am on…

Sunny
- 7,444
- 22
- 63
- 104
1
vote
2 answers
How to commit composing text to an InputConnection when the user changes the selection
I am making a custom keyboard and have to set composing text before committing it. This is described in this Q&A.
I know how to commit text in general
inputConnection.commitText("text", 1);
But I don't know how to commit it if the user changes the…

Suragch
- 484,302
- 314
- 1,365
- 1,393
0
votes
0 answers
InputConnection.commitText is replacing the whole text instead of concatenation
I am creating my own custom keyboard and I am point the keyboard to the EditText using etInputData.onCreateInputConnection(EditorInfo())!!. In my layout, I've used Custom TextView and when user clicks on the TextView, I use InputConnection to…

Mustansar Saeed
- 2,730
- 2
- 22
- 46
0
votes
0 answers
I can't to get Geolocation on my real android phone. Emulator works good. Flutter. Android Studio
I use this code for get position:
`Position position = await Geolocator.getCurrentPosition(
desiredAccuracy: LocationAccuracy.low);
List placemark =
await placemarkFromCoordinates(position.latitude,…

Waiz Dream
- 1
- 1
0
votes
1 answer
How do I get non-keyboard characters from an input method without displaying a virtual keyboard?
I am writing an application for a Datalogic handheld barcode scanner running Android. My app can retrieve barcodes via API, but the scanner can also emulate the keyboard using an invisible input method. I want to use the second approach as a more…

Andrew Usachov
- 31
- 3
0
votes
0 answers
How to identify the View (with text) when the cursor is on it?
How to identify the View (with text) when the cursor is on it? I would like to get the text when the cursor shows any view on the screen.

Dmitry Sergienko
- 85
- 6
0
votes
1 answer
How can you listen to soft key events sent to a View with an InputConnection?
I would like to create a custom text editor view in Android, with customizable key controls, meaning that I need to handle all software keyboard key events.
To do this, I can extend View and override its onKeyDown event. However, I would also like…

Skanderbeg
- 15
- 1
- 3
0
votes
1 answer
Android soft keyboard: only top row of keys work
This question already has an answer, it's a contibution to SO question base.
In my custom view I implemented the onCreateInputConnection method like so:
@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
…

Lev Leontev
- 2,538
- 2
- 19
- 31