Skip to content

Instantly share code, notes, and snippets.

@flschweiger
Created October 29, 2016 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flschweiger/6fa2693f05c36fc0dc889e53d4a2c4a1 to your computer and use it in GitHub Desktop.
Save flschweiger/6fa2693f05c36fc0dc889e53d4a2c4a1 to your computer and use it in GitHub Desktop.
Get the result from the ConfirmDeviceCredentialIntent.
@Override
protected void onActivityResult(int requestCode,
int resultCode, Intent data) {
if (requestCode == REQUEST_CODE_CREDENTIALS) {
// Challenge completed, proceed with using cipher
if (resultCode == RESULT_OK) {
doSomeDecryptionHere();
} else {
// The user canceled or didn’t complete the lock screen
// operation. Go to error/cancellation flow.
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment