Hello I am looking for the way to set the bitmap which are not in res
directory. Actually I am getting that icon from the URL and want to set it in the notification area.
Here I am doing but it is only set the icon which are in res
directory.
NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.ic_stat_logo)
.setContentTitle(Util.notificationTitle)
.setStyle(new NotificationCompat.BigTextStyle()
.bigText(notificationMessage))
.setAutoCancel(true)
.setDefaults(Notification.DEFAULT_SOUND)
.setContentText(notificationMessage);
Any idea to set the fetch bitmap from URL and set that icon as Notification
icon ?