Skip to content

Instantly share code, notes, and snippets.

@melikeeroglu
Created September 30, 2020 06:15
Show Gist options
  • Save melikeeroglu/ff95fba75a5203a35a1928e1b6d9073a to your computer and use it in GitHub Desktop.
Save melikeeroglu/ff95fba75a5203a35a1928e1b6d9073a to your computer and use it in GitHub Desktop.
HiAnimals signInAnonymously
AGConnectAuth.getInstance().signInAnonymously().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