So, I am dynamically creating an image within my app by animating various Views that I display to the user in the main layout of my application.
Currently I am generati
Sadly, AppWidgets are quite limited in terms of views. you can only use the views that Android supports.
The reason is that the code of the view needs to run on the container of the AppWidget, and that's a security risk, since you could get a glimpse at the private data of the app that shows it. So what Google did is that you need to prepare what to show, and when you finished, tell a restricted API how to show the AppWidget.
So the solution would be to flush the image as it should be shown , to an imageView or something similar. I suggest to do it in the background if it has a lot to prepare.
It all depends on your needs.