Вопрос

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