I'm curious why the setLargeIcon method in Notification.Builder accepts only Bitmap, without overloading to provide a resource identifier. This may have been done for performance reasons, but it seems strange since setSmallIcon accepts a res drawable identifier.
Notification.Builder builder = new Notification.Builder(application);
Unfortunately, the provided bitmap does not scale in the notification, so Bitmap must be provided with exactly the right size for the notification.
Assuming I need to provide the xhdpi, hdpi, mdpi and ldpi versions of the Icon large bitmap, what sizes should they be? I do not see mention in the docs or after cleaning up a wider website.
android android-3.0-honeycomb android-notifications
Ollie C Aug 28 2018-11-11T00: 00Z
source share