am e7c7993e: Merge "docs: Fixed error in code sample." into klp-modular-docs

* commit 'e7c7993e4d490b67b329ef2502e35c8aad763ca1':
  docs: Fixed error in code sample.
This commit is contained in:
Andrew Solovay
2014-08-26 18:36:23 +00:00
committed by Android Git Automerger

View File

@@ -167,13 +167,12 @@ public class MainActivity extends FragmentActivity {
"Google Play services is available.");
// Continue
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 {
// Get the error code
int errorCode = connectionResult.getErrorCode();
// Get the error dialog from Google Play services
Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(
errorCode,
resultCode,
this,
CONNECTION_FAILURE_RESOLUTION_REQUEST);