As we know, we can create bitmap from View
. But is it possible to create bitmap on background class like WorkManager
's Worker
?
My requirement is, I have to show notification with image on daily basis, this image will generated on background with dynamic data. For this I have a Layout
with TextView
s, I tried to bind data to this TextView
s and then converted this layout as bitmap, but it creates empty bitmap.