Button
takes a
Context
as it's constructor parameter (and possibly an
AttributeSet
and an
int
, but that's not important here), but you're passing something
MMainActivity
RetrieveFeedTask which I am guessing is not a
Context
.
Try creating the button by passing in just your
MMainActivity
;
Button b = new Button(MMainActivity);
Hope this helps