Google +1 button error on android app there was a temporary

前端 未结 2 1628
抹茶落季
抹茶落季 2020-12-30 05:50

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

相关标签:
2条回答
  • 2020-12-30 05:55

    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
    
    0 讨论(0)
  • 2020-12-30 06:12

    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

    0 讨论(0)
提交回复
热议问题