title: Notification for several seconds in notifications bar?
body: <p>how can i create a notification in the notifications bar that disappear after 5 seconds?
  For example; this is the notification code:</p>
  
  <pre><code>Intent intent = new Intent(this, NotificationReceiver.class);
  PendingIntent pIntent = PendingIntent.getActivity(this, 0, intent, 0);
  
  // Build notification
  // Actions are just fake
  Notification noti = new Notification.Builder(this)
          .setContentTitle("Notification")
          .setContentText("This is a notification that didsappears in 5 seconds")
          .setSmallIcon(R.drawable.icon)
          .setContentIntent(pIntent)
          .addAction(R.drawable.icon)
  
  
  NotificationManager notificationManager = 
    (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
  
  
  notificationManager.notify(0, noti);
  </code></pre>
  
  <p>Starting from this code how can i create my notification that disappear after 5 seconds?</p>