I am working on an Android app. I need the following:
1. Put something on google plus.
2.After sometime I want to calculate +1 and the total shares of my message.
I do it this way ( as suggested in the examples given in android sdk )
String action = "/?view=true"; Uri callToActionUrl = Uri.parse(getString(R.string.plus_example_deep_link_url) + action); String callToActionDeepLinkId = getString(R.string.plus_example_deep_link_id) + action; // Create an interactive post builder. PlusShare.Builder builder = new PlusShare.Builder(this, mPlusClient); // Set call-to-action metadata. builder.addCallToAction(LABEL_VIEW_ITEM, callToActionUrl, callToActionDeepLinkId); // Set the target url (for desktop use). builder.setContentUrl(Uri.parse(getString(R.string.plus_example_deep_link_url))); // Set the target deep-link ID (for mobile use). builder.setContentDeepLinkId(getString(R.string.plus_example_deep_link_id), null, null, null); // Set the pre-filled message. builder.setText(mEditSendText.getText().toString()); Intent intent= builder.getIntent(); startActivityForResult(intent, REQUEST_CODE_INTERACTIVE_POST);
Everything is going well, and I get this dialog to share, and I can successfully share my content on google plus account

But the problem arises here when the dialog rejects my onActivityResult call, and I expect some url or postId of this message so that I can find it for further processing
@Override protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
But intent is always null . So I just want to ask
1. Is it possible to record in Google browser, as well as use the Android code? (Well no)
2. If possible, what should I do?
source share