Ezequiel Allio Ezequiel Allio - 1 year ago 93
Android Question

Android Notifications unexpanded text

What is the option to put that text (view image) in the notification when it's unexpanded?

enter image description here

Answer Source

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