自定义对话框中的ShareDialog Facebook-Android
我想在自定义对话框中的ShareDialog Facebook-Android,android,facebook,dialog,Android,Facebook,Dialog,我想在自定义对话框中使用Facebook的ShareDialog,但初始化时无法将上下文值设置为new ShareDialog shareDialog = new ShareDialog(.......); //getContext() not working 我需要解决方法:(请在生成器中传递活动上下文,而不是getContext。如果在活动中使用,请使用like shareDialog = new ShareDialog(MyActivity.this); 如果在片段中使用它 shar
自定义对话框
中使用Facebook的ShareDialog
,但初始化时无法将上下文值设置为new ShareDialog
shareDialog = new ShareDialog(.......); //getContext() not working
我需要解决方法:(请在生成器中传递活动上下文,而不是getContext。如果在活动中使用,请使用like
shareDialog = new ShareDialog(MyActivity.this);
如果在片段中使用它
shareDialog = new ShareDialog(getActivity);
我想在自定义对话框中使用它:(哦,我认为这是一个初始化问题