I would that the notification does not disappear after a few seconds. So i have create the notification like this:
NotificationCompat.Builder builder = new
The duration cannot be changed. Otherwise it would intrude with other heads-up notifications that are in the queue to be displayed.