title: Notification text clears on press clear on status bar?
body: <p>In my application I'm displaying notification text and icon on the notification bar but my problem is that when the user presses <code>clear</code> on the notification bar it gets cleared. I want to prevent it!? And some other issues too:</p>
  
  <ol>
  <li>I want to create notifications for my application by different activities, say one on start it displays "Welcome to app", the second activity displays "please select", in "Data send activity" it displays "Records sent successfully"!!</li>
  <li>How to remove the notification on application exit.</li>
  <li>How to disable users to clear the notification when they press the clear button on the notification bar</li>
  <li>How to remove a notification from the status bar when the user presses it to open an activity?</li>
  </ol>
  
  <p>Any help?</p>
  
  <p>My current code </p>
  
  <pre><code>private void Notification(String notificationTickerText, String Title,
              String text, Notification nt) {
          notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
  
          int icon = R.drawable.nicon;
          CharSequence tickerText = notificationTickerText;
  
          long when = System.currentTimeMillis();
          nt = new Notification(icon, tickerText, when);
  
          Context context = getApplicationContext();
          CharSequence contentTitle = Title;
          CharSequence contentText = text;
          Intent notificationIntent = new Intent(this, frmLogin.class);
  
          PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
                  notificationIntent, 0);
  
          nt.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
  
          notificationManager.notify(1, nt);
      }
  </code></pre>