Question: I am trying to send notification in two line when the message text is long 

I have tried this :

```
Message message = new Message.Builder().timeToLive(30)
            .delayWhileIdle(true).addData("message", msg).build();

```

when the text "msg" contain more char then then notification shows as
message: this is a notification msg...

how to get notification in two line instead of getting ...

Answer: 
Try this:

```
NotificationManager notificationManager = getNotificationManager();
        PendingIntent pi = getPendingIntent();
        Builder builder = new Notification.Builder(this);
        builder.setContentTitle(title)
                .setContentText(message)
                .setSmallIcon(R.drawable.ic_launcher)
                .setAutoCancel(true);

Notification notification = new Notification.BigTextStyle(builder).bigText(message).build();

```

**NOTE**

It's reports "an error": `Call requires API level 16` but i'm using on Lower APIS...
I did it like:-

```
Message message = new Message.Builder()
                             .timeToLive(30)
                             .delayWhileIdle(true)
                             .addData("title", msgTitle)
                             .addData("text", msgText)
                             .build();

```

And in the client app side, you can extract the title and text seperately and display it in two lines.