質問

In Android App, I follwed this tutorial : Share Post on google plus

@Override
public void onClick(View v) {

    String tripDetails = "Test;
    Intent shareIntent = new PlusShare.Builder(this)
            .setText(tripDetails)
            .setType("image/png")
            .setContentDeepLinkId("Testing",
                    "Testing",
                    "Description.",
                    Uri.parse("https://www.example.com/image.png"))
            .getIntent();
    startActivityForResult(shareIntent, 0);

}

It runs successfully and post is also shared on google plus.

But I don't know which method is called after Post is shared on google plus and when it returns to application back. So do you know any call back method?

Any help will be appreciated.

役に立ちましたか?

解決

onActivityResult method of your activity will be called. So handle your UI changes after posting in onActivityResult method

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top