Created
February 10, 2022 15:00
-
-
Save devwithzachary/1eb670240b8fdb18e22a7caecaa96a86 to your computer and use it in GitHub Desktop.
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
HmsInstanceId inst = HmsInstanceId.getInstance(this); | |
Task<AAIDResult> idResult = inst.getAAID(); | |
idResult.addOnSuccessListener(new OnSuccessListener<AAIDResult>() { | |
@Override | |
public void onSuccess(AAIDResult aaidResult) { | |
String aaid = aaidResult.getId(); | |
textView.setText(aaid); | |
Log.d(TAG, "getAAID success:" + aaid ); | |
} | |
}).addOnFailureListener(new OnFailureListener() { | |
@Override | |
public void onFailure(Exception e) { | |
Log.d(TAG, "getAAID failure:" + e); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment