fragment中使用shareAction问题

new ShareAction(**???**)
.withMedia(web)
.setDisplayList(SHARE_MEDIA.SINA, SHARE_MEDIA.QQ, SHARE_MEDIA.WEIXIN)

                            括号中的问号部分应该如何写
                            我 在fragment调用的这个方法, 括号中参数写textfragment.this 报错
                            错误如下
                            ShareAction(android.app.activity) in ShareAction cannot be applied to android.app.activity.setting.fragment

Done with this Solution..

ShareActionProvider mShareActionProvider = new ShareActionProvider(getActivity());
if(mShareActionProvider != null) {
mShareActionProvider.setShareIntent(createShareIntent());
} else {
Log.d(LOG_TAG, "Share action provider is null");
}