title: Set Drawable or Bitmap as icon In Notification in Android
body: <p>I download a image from server as bitmap and convert it to drawable now i want to use this drawable as notification icon. But i am unable to do that. here is my code:</p>
  
  <pre><code>    Notification notification = new NotificationCompat.Builder(context)
  
      .setContentTitle(title)
  
      .setContentText(message)
  
      .setContentIntent(intent)
  
      .setSmallIcon(bitmap)
  
      .setWhen(when)
  
      .build(); 
  </code></pre>
  
  <p>but icon is a Resources int value so when i used it it gives error.  Any help</p>
  
  <p>Edit:</p>
  
  <p>Now i update my code and now i am doing like that :</p>
  
  <pre><code>          Notification notification = new NotificationCompat.Builder(context)
  
          .setContentTitle(title)
  
          .setContentText(message)
  
          .setContentIntent(intent)
  
          .setSmallIcon(icon)
  
          .setLargeIcon(bitmap)
  
          .setWhen(when)
  
          .build();
  </code></pre>
  
  <p>but it gives large icon on left side and small icon on right side. I don't want this so for this i remove setSmallIcon line and run my code but it not showing me the notifications</p>