RC_SIGN_IN在googleplus登录中意味着什么 [英] What does the RC_SIGN_IN means in googleplus login
问题描述
我需要使用谷歌加按钮添加登录到我的应用程序。我在此链接中关注了Google的文档。但是在signin方法中有一个名为 RC_SIGN_IN
的值。我不知道我应该分配给什么值 RC_SIGN_IN
。
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
. I do not know what are the values I should assign to RC_SIGN_IN
.
推荐答案
RC_SIGN in是您将分配用于启动新活动的请求代码。这可以是任何数字。当用户完成后续活动并返回时,系统会调用您的活动的onActivityResult()方法。并且该方法将如下所示:
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.
根据您的要求,将任何数字分配给RC_SIGN。
For your requirement just assign any number to RC_SIGN.
这篇关于RC_SIGN_IN在googleplus登录中意味着什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!