I added google plus one button in my app by this guide https://developers.google.com/+/mobile/android/recommend
When I press button I see google plus window and afte
Please use this code below :
mPlusOneButton.setOnPlusOneClickListener(new OnPlusOneClickListener() {
@Override
public void onPlusOneClick(Intent intent) {
if(!plusClient.isConnected()) {
plusClient.connect();
} else {
startActivityForResult(intent, 0);
}
}
}
and also see this activity in android-sdk
for reference :
androidsdk/extras/google/google_play_services/samples/plus/src/com/google/android/gms/samples/plus/PlusOneActivity.java
I've reported the problem on the Google Issue tracker and they have closed it as won't fix stating that it's deprecated
https://issuetracker.google.com/issues/73993857