title: How to use Notification.deleteIntent
body: <p>I'm trying to detect when my notification gets cleared. My question directly refers to this <a href="https://stackoverflow.com/questions/6370583/android-deleteintent-how-to-use/6371297#6371297">answer</a> which outlines what I'm suppose to do. This is how I'm implementing the actions:</p>
  
  <pre><code>// usual Notification initialization here
  notification.deleteIntent = PendingIntent.getService(context, 0, new Intent(context, CleanUpIntent.class), 0);
  notificationManager.notify(123, notification)
  </code></pre>
  
  <p>This is the CleanUpIntent class:</p>
  
  <pre><code>class CleanUpIntent extends IntentService {
      public CleanUpIntent() {
          super("CleanUpIntent");
      }
  
      @Override
      protected void onHandleIntent(Intent arg0) {
          // clean up code
      }
  }
  </code></pre>
  
  <p>Afterwards, I simply launch the notification like I normally would but when I go to test it out (pressing "Clear All Notifications") nothing happens. I inserted a line of code that out print something to LogCat when the IntentService gets started, but nothing ever ran. Is this how I'm suppose to use Notification.deleteIntent?</p>