Android Heads-up notification disappears after a few seconds
问题 I would that the notification does not disappear after a few seconds. So i have create the notification like this: NotificationCompat.Builder builder = new NotificationCompat.Builder(context); builder.setSmallIcon(R.drawable.cast_ic_notification_small_icon) .setDefaults(Notification.FLAG_ONGOING_EVENT) .setPriority(Notification.PRIORITY_HIGH) .setContentTitle(notificationDetails.getSubject()) .setContentText(notificationDetails.getMessage()) .setColor(context.getResources().getColor(R.color