How do I set the background color of the home screen app widget programmatically?
use
Yourwidget.setBackgroundColor(Color.RED);
hope help