I know there are a lot of questions like mine, but I really need to solve it. As far as I know in API level 23 , Android has introduced new method to setSmallIcon using bitmap. So, I can use
Is there a quick way to add new setSmallIcon implementation to older version of Notification.
Not only is there no quick way, there is no way at all.
Icon class is not present below API 23 and the only way to set a small icon to a notification is to use
Notification.Builder.setSmallIcon(int) which takes a drawable resource ID as parameter.
Consider migrating from .jar to .aar.