Questions tagged [remote-input]
14 questions
17
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,…
![](../../users/profiles/819367.webp)
Force
- 5,986
- 6
- 50
- 81
14
votes
1 answer
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")
…
![](../../users/profiles/895876.webp)
Jason
- 11,310
- 13
- 63
- 115
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…
![](../../users/profiles/226342.webp)
Henrik
- 1,851
- 3
- 25
- 50
4
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 =
…
![](../../users/profiles/1529129.webp)
Rahul Tiwari
- 5,931
- 2
- 41
- 66
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")
…
![](../../users/profiles/1529129.webp)
Rahul Tiwari
- 5,931
- 2
- 41
- 66
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)…
![](../../users/profiles/9829452.webp)
Carlos Brolo
- 31
- 2
2
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)…
![](../../users/profiles/2745944.webp)
martinseal1987
- 747
- 2
- 25
- 52
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…
![](../../users/profiles/997940.webp)
Yoav Feuerstein
- 1,765
- 2
- 20
- 47
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…
![](../../users/profiles/5593959.webp)
Dima Rostopira
- 8,261
- 3
- 52
- 74
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…
![](../../users/profiles/1307987.webp)
rosu alin
- 5,130
- 9
- 56
- 133
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();
…
![](../../users/profiles/5044799.webp)
Rishabh Tanwar
- 31
- 1
- 6
0
votes
1 answer
Is it possible to add initial text to notification RemoteInput (Android)?
I am creating Android notes app and want to add ability to edit note that stores in notification. So can I add initial text to Android RemoteInput from the current note(notification) and allow user to change it?
example of…
0
votes
0 answers
How to add max-length limit of RemoteInput
direct reply with below code:
int requestCode = sMsgRequestCode.incrementAndGet();
Intent broadcast = new Intent(context,…
![](../../users/profiles/7591700.webp)
Junhua Zhu
- 51
- 3
-1
votes
1 answer
Powershell script to install multiple msi on remote machines
Good day, I would ask you to help me with finding the solution how to copy each MSI package to remote machine using link on nas storage.
# Get list of servers
param(
[ValidateSet('STUDENT_LAB', 'LIBRARY_LAB', 'TEACHER_LAB')]
[Parameter(Mandatory…
![](../../users/profiles/5098472.webp)
Kwaker
- 43
- 7