Last active
September 30, 2020 06:14
-
-
Save melikeeroglu/00adc087bc54ae9b614faef225f02ec3 to your computer and use it in GitHub Desktop.
HiAnimals transmitTokenIntoAppGalleryConnect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void transmitTokenIntoAppGalleryConnect(String accessToken) { | |
AGConnectAuthCredential credential = HwIdAuthProvider.credentialWithToken(accessToken); | |
AGConnectAuth.getInstance().signIn(credential).addOnSuccessListener(new OnSuccessListener<SignInResult>() { | |
@Override | |
public void onSuccess(SignInResult signInResult) { | |
startActivity(new Intent(MainActivity.this, HomePageActivity.class)); | |
finish(); | |
} | |
}).addOnFailureListener(new OnFailureListener() { | |
@Override | |
public void onFailure(Exception e) { | |
Log.d(TAG, "Error " + e); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment