문제

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