What does the RC_SIGN_IN means in googleplus login

后端 未结 1 1208
走了就别回头了
走了就别回头了 2021-01-07 17:55

I need to add login with google plus button to my app. I followed google\'s documentation in this Link. But in signin method there is a value called RC_SIGN_IN.

相关标签:
1条回答
  • 2021-01-07 18:56

    RC_SIGN in is the request code you will assign for starting the new activity. this can be any number. When the user is done with the subsequent activity and returns, the system calls your activity's onActivityResult() method. and that method will be like :

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // Check which request we're responding to
        if (requestCode == RC_SIGN) {
    
        }
    }
    

    For more details you can see here.

    For your requirement just assign any number to RC_SIGN.

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