title: Android NotificationListenerService get EXTRA_SMALL_ICON always returns null
body: <p>I'm developing an app to read active notifications of Android. So far I have being successful until I got stucked with getting EXTRA_SMALL_ICON. I use following piece of code to retrive app icon and large icon and they both work just fine.</p>
  
  <p>//Works fine</p>
  
  <pre><code>Drawable appIcon = null;
  try {
       appIcon = getPackageManager().getApplicationIcon(packageName);
  } catch (PackageManager.NameNotFoundException e) {
       e.printStackTrace();
  }
  </code></pre>
  
  <p>//Works fine</p>
  
  <pre><code>Bitmap largeIcon = null;
  try {
      largeIcon = (Bitmap) notification.extras.getParcelable(Notification.EXTRA_LARGE_ICON);
  } catch (Exception e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>//NOT WORKING</p>
  
  <pre><code>Bitmap smallIcon = null;
     try {
          smallIcon = (Bitmap) notification.extras.getParcelable(Notification.EXTRA_SMALL_ICON);
     } catch (Exception e) {
          e.printStackTrace();
     }
  </code></pre>
  
  <p>Getting SMALL_ICON throws following exception.</p>
  
  <pre><code>Key android.icon expected Parcelable but value was a java.lang.Integer.  The default value &lt;null&gt; was returned.
  W/Bundle: Attempt to cast generated internal exception:
  java.lang.ClassCastException: java.lang.Integer cannot be cast to android.os.Parcelable
  </code></pre>
  
  <p>And yes, the notification I'm trying to get has a small icon set. Am I doing anything wrong or is there any other way to gt SMALL_ICON? I can not figure out why.</p>
  
  <p>Thanks!</p>