title: Dismiss Heads Up notification and create a normal one
body: <p>I'm using this code to create a Heads Up notification.</p>
  
  <pre><code>private static void showNotificationNew(final Context context,final String title,final String message,final Intent intent, final int notificationId, final boolean isHeaderNotification) {
      NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context.getApplicationContext())
              .setSmallIcon(R.drawable.prime_builder_icon)
              .setPriority(Notification.PRIORITY_DEFAULT)
              .setCategory(Notification.CATEGORY_MESSAGE)
              .setContentTitle(title)
              .setContentText(message)
              .setWhen(0)
              .setTicker(context.getString(R.string.app_name));
  
      PendingIntent fullScreenPendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
      notificationBuilder.setContentText(message);
      if(isHeaderNotification) {
          notificationBuilder.setFullScreenIntent(fullScreenPendingIntent, false);
      }
  
      notificationBuilder.setContentIntent(fullScreenPendingIntent);
      notificationBuilder.setAutoCancel(true);
  
  
      Notification notification = notificationBuilder.build();
      NotificationManager manager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
      manager.notify(notificationId, notification);
  }
  </code></pre>
  
  <p>The thing is, notification should appear occupying a good part of  top screen to call user attention, but after a couple seconds it should dismiss and a normal notification should appear. </p>
  
  <p>But this code doesn't do that. The notification stay occupying all the top screen until user dismiss it.</p>
  
  <p>I'm thinking in create another normal notification with same ID after a couple of seconds using Handler, but I want to know if there is a better way to do this.</p>
  
  <p>Follow an example of WhatsApp, simulating the behavior I want.</p>
  
  <p><a href="https://i.stack.imgur.com/dZuyxl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dZuyxl.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/jTyiXl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jTyiXl.jpg" alt="enter image description here"></a></p>