Hello All
I have integrated Google+ using its android sdk and able to get PlusClient
object as well.
I got basic information from
here<https://developers.google.com/+/mobile/android/getting-started>.
In the same page at bottom there is another link for interactive post from
where i got the below code which share the content. But its opening dialog
and then share it.
*Code :- Share intent code*
Button shareButton = (Button) findViewById(R.id.share_button);
shareButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// Launch the Google+ share dialog with attribution to your app.
Intent shareIntent = new PlusShare.Builder(this)
.setType("text/plain")
.setText("Welcome to the Google+ platform.")
.setContentUrl(Uri.parse("https://developers.google.com/+/"))
.getIntent();
startActivityForResult(shareIntent, 0);
}
});
My case is different as I have *Image and Text* already with me in my app,
i just want to share them on the Google+ without any user interaction
(except the login/sigin of user who wants to share it). And immediately
after sharing the photo+text i will remove/clear the login of the user. So
i only want to ask user for the authentication and the dialog for share
should not appear. There will be a single button name **Share on G+** by
clicking that button app will ask user for authentication and share the
photo+text already selected by user.
*IMP NOTE :- Only user authentication pop up should be displayed and there
after it must share the photo+text without any user interaction.*
I need some guidance on this as i have already integrated the android-sdk
and i also have it working, Now only thing is sharing without user
interaction. Please if anyone has any idea on this kindly help/guide me.
Thanks & Regards,
Keyur
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.