61.5 Creating the PendingIntent
The steps to creating the PendingIntent are the same as those outlined in the “An Android Notifications Tutorial” chapter, with the exception that the intent will be configured to launch MainActivity. Remaining within the MainActivity.java file, add the code to create the PendingIntent as follows:
public void sendNotification(View view) {
String replyLabel = "Enter your reply here";
RemoteInput remoteInput =
new RemoteInput.Builder(KEY_TEXT_REPLY)
.setLabel(replyLabel)
.build();
Intent resultIntent = new Intent(this, MainActivity.class);
PendingIntent resultPendingIntent...