Ezequiel Allio Ezequiel Allio - 3 months ago 24
Android Question

Notifications unexpanded text

How do I put a text (view the image below) in the notification when it's unexpanded?

enter image description here

Answer

Notification.Builder#setContentText(CharSequence text)

Set the second line of text in the platform notification template.

Also see Anatomy of a Notification. For how to build one, see Building a Notification