Action button in the notification bar is not coming
<p>I am using this code for custom notification .Problem is that the whole text that is in string is coming in single line .secondly no action button is visible.</p>

<pre><code>     private void showNotification(String msg){
    //Creating a notification
    NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
    builder.setSmallIcon(R.drawable.ic_alert);
    builder.setContentTitle("Alert");
    builder.setContentText(msg);
    builder.setAutoCancel(false);
    builder.setPriority(NotificationCompat.PRIORITY_HIGH);
    Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.google.com"));
    PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent, 0);
    builder.setContentIntent(pendingIntent);
    //builder.setLargeIcon(BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher));

    builder.addAction(R.drawable.ic_call, "Accept", pendingIntent).build();
   //  builder.addAction(R.drawable.ic_alert, "Reject", pendingIntent).build();
    NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
    notificationManager.notify(0, builder.build());


}
</code></pre>