I am trying show an image in Notification Bar . But when i set image which is JPG format My application closed with android stopped process. And when i set a PNG icon, icon does not show there. I resize my both type of icon 32dp and try also 24dp size. Heres my code and screenshot --
  public void shownotification(View view){
    Intent intent = new Intent();
    PendingIntent pendingIntent = PendingIntent.getActivity(MainActivity.this,0,intent,0);
    Notification notification = new Notification.Builder(MainActivity.this)
            .setTicker("Tittle")
            .setContentTitle("Content Tittle")
            .setContentText("All details of Content")
            .setSmallIcon(R.drawable.cdc)
            .setContentIntent(pendingIntent).getNotification();
    notification.flags = Notification.FLAG_AUTO_CANCEL;
    NotificationManager notificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
    notificationManager.notify(0,notification);
}

 
    