code: private void setContentViewWithMinimalElements() {
          // Set data in the RemoteViews programmatically
          contentView.setImageViewResource(R.id.imageView, R.drawable.ic_launcher);
          contentView.setTextViewText(R.id.title_text_notification, getResources().getString(R.string.notification_title));
          contentView.setTextViewText(R.id.message_notification, getResources().getString(R.string.notification_text));
      }
docs: Method to set the contentview with Title, Text and Image.