-1
enter code here public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
//If signin
if (requestCode == RC_SIGN_IN) {
GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);
//Calling a new function to handle signin
handleSignInResult(result);
}
//これはFacebookの callbackManager.onActivityResult(requestCode、resultCodeが、データ)のためです。はどのようにonActivityResult使用するには、Androidつ以上の
複数のものは何ですか? –
あなたの活動に複数回の意味があります。フェイスブックサインインとGoogle +サインインの両方に必要です – marwa
それぞれに異なるリクエストコードを使用し、それぞれにifステートメント –