Questions tagged [remote-input]
17 questions
18
votes
1 answer
How to utilize Android Nougat's Direct Reply feature with a NotificationListener?
My app is using a NotificationListener to read out messages from various 3rd party apps, for example WhatsApp.
So far I was able to send a reply if only one chat is unread, the code is below.
However, in the case with WhatsApp,…

Force
- 6,312
- 7
- 54
- 85
14
votes
2 answers
What are AllowedDataTypes on RemoteInput?
There's a new function called setAllowDataType on RemoteInput.Builder in API 26. What is this used for? I tried the following:
val remoteInput = RemoteInput.Builder(KEY_TEXT_REPLY)
.setLabel("Image")
…

Jason
- 13,563
- 15
- 74
- 125
8
votes
2 answers
How to specify min and/or max length in RemoteInput
I use RemoteInput in my Android N notifications.
I want to set a min and max text length limit for the input.
Google Hangouts got this (i.e. the send button enables when the user entered at least 1 character). Anyone know how this can be done? I've…

Henrik
- 1,983
- 3
- 28
- 52
7
votes
3 answers
cancel notification with remoteInput not working
I am showing a notification with RemoteInput like this:
RemoteInput remoteInput = new RemoteInput.Builder("key_add_note")
.setLabel("add note")
.build();
PendingIntent AddNotePendingIntent =
…

Rahul Tiwari
- 6,851
- 3
- 49
- 78
4
votes
0 answers
How can I change icon for send button on direct reply Android
I have created a notification, with an action with RemoteInput to add a note into the specific entry of my app like this:
RemoteInput remoteInput = new RemoteInput.Builder("key_add_note")
.setLabel("add note")
…

Rahul Tiwari
- 6,851
- 3
- 49
- 78
3
votes
2 answers
RemoteInput return null
I am creating a notification with RemoteInput to capture the text from the notification itself.
The problem that when I retrieve the RemoteInput in the called service with RemoteInput.getResultsFromIntent() it returns null. I have verified that the…

Jamani
- 31
- 2
3
votes
1 answer
How to pass extra data to a broadcast receiver with android remote input
I've seen a couple of duplicates for this question so I'm sorry in advance if I've missed one but none that I've found have a solution, case in point here I'm trying to do the same thing as this though. I want to use direct reply (Messaging style)…

martinseal1987
- 1,862
- 8
- 44
- 77
3
votes
0 answers
NotificationListenerService cancelNotification won't work for notifications with reply-actions
Background:
There are 2 type of notifications.... Plain ones (The old traditional type) and the ones since Lolipop that can have "reply" actions.
I made a NotificationListenerService that can dismiss notifications (from any other app, not only mine)…

Carlos Brolo
- 31
- 2
2
votes
0 answers
Notification.Action with multiple RemoteInputs - why and how?
TL;DR version: I've noticed that an action-able notification in Android can be assigned with multiple instances of RemoteInput - but couldn't find a scenario in which this is useful, and not even sure how to properly use this potential…

Yoav Feuerstein
- 1,925
- 2
- 22
- 53
2
votes
1 answer
Nougat RemoteInput: color of text field
I've implemented RemoteInput in my app, but text field area appears with gray background abd I want it blue like this:
Is there are any way to do this?
UPD: Looks like colorPrimary is used for this, but I don't want to change it in whole app, just…

Dmytro Rostopira
- 10,588
- 4
- 64
- 86
1
vote
0 answers
Pass additional data/bundle to a RemoteInput intent on Wear OS
I'm asking for text input on Wear OS using the RemoteInput intent, with the following code:
public class MainActivity extends Activity {
private ActivityMainBinding binding;
private static final int MESSAGE_INPUT_RESULT = 102;
private…

virtualdj
- 413
- 6
- 18
1
vote
1 answer
Action from notification does nothing
This is my code:
Intent notificationIntent = new Intent(this, PSTimelineFragmentsActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
NotificationCompat.Builder mBuilder = new…

rosu alin
- 5,674
- 11
- 69
- 150
1
vote
0 answers
How to use numeric keyboard in android notification direct reply?
I want to use a numeric keyboard in android notification's direct reply and also want to set the input filter for it.
RemoteInput remoteInput =
new RemoteInput.Builder("log").setLabel(defaultUnitBG == 1 ? "mg/dL" : "mmol").build();
…

Rishabh Tanwar
- 31
- 1
- 6
0
votes
0 answers
How to direct replay to notifications of other apps from my android app?
I want to reply to the chat app's notification conversation from my app.
I did a code and get notification id,Remote Input key.But I can't figure out how to do it.
There are some apps on play store app 1 and app 2 which are doing this.
I read this…

BQF
- 9
- 2
0
votes
1 answer
Wear OS: How to instantly bring up the keyboard input on Chip click?
I have a Chip component, and through its onClick event, I would like to bring up the keyboard.
Currently, I am using the RemoteInput API:
val intent: Intent = RemoteInputIntentHelper.createActionRemoteInputIntent()
val remoteInputs:…

JoZ
- 1
- 3