@Override
public void onActivityResult(int requestCode, int resultCode, Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
if(requestCode==392 &&resultCode==RESULT_OK)
{
System.out.println("Google+");
}
}
Intent shareIntent = ShareCompat.IntentBuilder.from(getActivity())
.setText(". http://www.http://stackoverflow.com/")
.setType("text/plain")
.getIntent()
.setPackage("com.google.android.apps.plus");
startActivityForResult(shareIntent, 392);
我想检查是否已发布,如何检查用户是否成功发布或取消了共享。