Try to create a custom type of notifications, then you can use the Bitmap object:
RemoteViews contentView = new RemoteViews(context.getPackageName(), R.layout.custom_notification_layout); contentView.setImageViewBitmap(R.id.icon_view, myBitmapObject); notification.contentView = contentView;
For more information, see “ Creating a Custom Enhanced View ” on this page: https://developer.android.com/guide/topics/ui/notifiers/notifications.html p>
source share