BaseTarget
(Glide 3.x SimpleTarget
). Theoretically, you could utilize that way to load the image into your notification. But it's not necessary, since Glide makes it much more comfortable for you by providing a convenient NotificationTarget
.RemoteViews
and display a custom notification.notification
and the RemoteViews
and our constant NOTIFICATION_ID. We'll need those to create the notification target:.into()
parameter: Boxshot ultimate 5 0 85.AppWidgetProvider
:appWidgetTarget
object and the Glide builder. Good news here: you don't need to customize AppWidgetTarget
any further with overriding the onResourceReady
method. Glide does everything automatically for you. Very nice! ImageView
s, notifications, Bitmap callbacks etc.