I asked myself and I was working on another test with the widgets and I was wondering if I could create a widget from code. An idea of what I'm saying: create an app that when you place text in an EditTex and select an image, create a new widget with those properties. If you know if it can be achieved, it would be very helpful.