I know there's a list of different sizes for small notification icons for different screen DPIs, as shown here. This is useful to know when preparing a set of static icon files for the application.
But I need to create an icon dynamically, using setSmallIcon(Icon) from Notification.Builder. For large icon, I can call e.g. getResources().getDimensionPixelSize(android.R.dimen.notification_large_icon_width) and similar for height to get exact numeric values. How can I do the same for small icon?