I wan't to add button to android widget dynamically.
I've tried to do it by following way from main Activty:
Button a = new Button(this); a.setText("Pushme"); RelativeLayout rl = (RelativeLayout)findViewById(R.id.llay); rl.addView(a);
RelativeLayout here it's widget layout.
From AppWidgetProvider custom class I cant do it too, cause I'm unable to create there button.
Is there any solution?