Skip to content

Instantly share code, notes, and snippets.

@tajchert
Created March 24, 2015 15:51
Show Gist options
  • Save tajchert/522fde5ce20797ef6b6d to your computer and use it in GitHub Desktop.
Save tajchert/522fde5ce20797ef6b6d to your computer and use it in GitHub Desktop.
RemoteInput remoteInput = new RemoteInput.Builder(EXTRA_VOICE_REPLY).build();
NotificationCompat.Action action =
new NotificationCompat.Action.Builder(...)
.addRemoteInput(remoteInput)
.build();
NotificationCompat.WearableExtender wearableExtender = new NotificationCompat.WearableExtender().addAction(action);
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(MainActivity.this).extend(wearableExtender);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment