title: Android - Keep notification steady at Notification Bar
body: <p>I have written the function to notify and display at Notification bar:</p>
  
  <pre><code>private void showNotification()
      {
              CharSequence title = "Hello";
              CharSequence message = "Notification Demo";
  
              NotificationManager notificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
              Notification notification = new Notification(R.drawable.icon, "A Notification", System.currentTimeMillis());
              Intent notificationIntent = new Intent(this, Main_Activity.class);
              PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
  
              notification.setLatestEventInfo(Main_Activity.this, title, message, pendingIntent);
              notificationManager.notify(NOTIFICATION_ID, notification);
      }
  </code></pre>
  
  <p>Its working fine, But <strong><code>what way we can keep the notification steady at Notification bar</code></strong> even when user press the "clear" notificatios button from the notification bar ?</p>
  
  <p>Please have a look at the "Yahoo" application's notification bar.</p>
  
  <p><img src="https://i.stack.imgur.com/IZvWc.png" alt="enter image description here"></p>
  
  <p>I have gone through this SDK article: <a href="http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Updating" rel="noreferrer">http://developer.android.com/guide/topics/ui/notifiers/notifications.html#Updating</a> , but failed to find out.</p>