I use the URL for google plus PlusShare.Builder, but not its rendering.
Its rendering is successful when I just copy the url in google plus but it doesn't work on the android side.
this is my url
Plz tell me my code .. is there anything in my code.
private void shareToGooglePlus(String urlToShare){
PlusShare.Builder builder = new PlusShare.Builder(getActivity());
builder.addCallToAction(
"CREATE_ITEM",
Uri.parse("http://plus.google.com/pages/create"),
"/pages/create" );
builder.setContentUrl(Uri.parse("https://plus.google.com/share?url="+ urlToShare));
builder.addStream(Uri.parse(urlToShare));
builder.setText(urlToShare);
startActivityForResult(builder.getIntent(), 0);
}
source
share