Parameters

activity

An Activity context to use to resolve the issue. The activity's
onActivityResult method will be invoked after the user is done. If the
resultCode is RESULT_OK, the application should try to
connect again.

requestCode

The request code to pass to onActivityResult.

Throws

IntentSender.SendIntentException

If the resolution intent has been canceled or is
no longer able to execute the request.