Changes

Jump to: navigation, search

A Kotlin Android Direct Reply Notification Tutorial

27 bytes added, 21:05, 28 November 2017
Updating the Notification
After making these code changes build and run the app once again. Click the button to issue the notification and enter and send some text from within the notification panel. Note that the TextView widget in the DirectReplyActivity activity is updated to display the in-line text that was entered.
== Updating Updating the Notification ==
After sending the reply within the notification you may have noticed that the progress indicator continues to spin within the notification panel as highlighted in Figure 59-4:
[[File:as3.0_direct_reply_received.png]] 
== Summary ==
The direct reply notification feature allows text to be entered by the user within a notification and passed via an intent to an activity of the corresponding application. Direct reply is made possible by the RemoteInput class, an instance of which can be embedded within an action and bundled with the notification. When working with direct reply notifications, it is important to let the NotificationManager service know that the reply has been received and processed. The best way to achieve this is to simply update the notification message using the notification ID provided when the notification was first issued.

Navigation menu