* commit '8d8cf0b22f9f8eaf06914697fbe22a77cb27e307': docs: Fixed error in code sample.
This commit is contained in:
@@ -167,13 +167,12 @@ public class MainActivity extends FragmentActivity {
|
|||||||
"Google Play services is available.");
|
"Google Play services is available.");
|
||||||
// Continue
|
// Continue
|
||||||
return true;
|
return true;
|
||||||
// Google Play services was not available for some reason
|
// Google Play services was not available for some reason.
|
||||||
|
// resultCode holds the error code.
|
||||||
} else {
|
} else {
|
||||||
// Get the error code
|
|
||||||
int errorCode = connectionResult.getErrorCode();
|
|
||||||
// Get the error dialog from Google Play services
|
// Get the error dialog from Google Play services
|
||||||
Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(
|
Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(
|
||||||
errorCode,
|
resultCode,
|
||||||
this,
|
this,
|
||||||
CONNECTION_FAILURE_RESOLUTION_REQUEST);
|
CONNECTION_FAILURE_RESOLUTION_REQUEST);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user