How to use numeric keyboard in android notification direct reply?

214 views Asked by At

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();

      NotificationCompat.Action replyAction = null;
      NotificationCompat.Action.Builder actionBuilder =
          new NotificationCompat.Action.Builder(R.drawable.white_circle, replyLabel,
              getLogPendingIntent(context, notificationScheduleObject, iUniqueId, notificationId));

      actionBuilder.setAllowGeneratedReplies(true);
0

There are 0 answers