title: How can I set delete intent to my code?
body: <p>I've searched many times but I was not able to find what I actually needed,
  There is something on stackoverflow like <a href="https://stackoverflow.com/questions/13028122/how-to-use-delete-intent-to-perform-some-action-on-clear-notification">this</a> and <a href="https://stackoverflow.com/questions/14671453/catch-on-swipe-to-dismiss-event">this</a>
  but I need to implement my code for <code>api level 8</code> not <em>11</em>. So how can I implement it in my code?</p>
  
  <p>My code is here:</p>
  
  <pre><code>....
  
  mNotification = new Notification(icon, tickerText, when);
  
  //create the content which is shown in the notification pulldown
  mContentTitle = mContext.getString(R.string.noti_comes_t_l); //Full title of the notification in the pull down
  CharSequence contentText = "click to see notification"; //Text of the notification in the pull down
  
  //you have to set a PendingIntent on a notification to tell the system what you want it to do when the notification is selected
  //I don't want to use this here so I'm just creating a blank one 
  mContentIntent  = PendingIntent.getActivity(mContext, 0, new Intent(mContext, notify.class), 0); 
  
  //add the additional content and intent to the notification
  mNotification.setLatestEventInfo(mContext, mContentTitle, contentText, mContentIntent);
  
  //make this notification appear in the 'Ongoing events' section
  mNotification.flags = Notification.DEFAULT_LIGHTS | Notification.FLAG_AUTO_CANCEL ;
  
  //show the notification
  mNotificationManager.notify(NOTIFICATION_ID, mNotification);
  
  ....
  </code></pre>
  
  <p>How can I implement this?</p>