While inserting a button, I get the issue that "Cannot resolve method getActivity()". Can someone tell me how to resolve this?