diff options
author | Andrew Solovay <asolovay@google.com> | 2014-08-26 18:25:33 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-26 18:25:33 +0000 |
commit | e7c7993e4d490b67b329ef2502e35c8aad763ca1 (patch) | |
tree | 391f7a641cb958883672478213f47a85a5b7144a /docs | |
parent | 2a866f075d9b23f835d27d4d46f8ccdc60c1fa6e (diff) | |
parent | 48ec6673c65ee2e2c2623506cf25587d4dcb115d (diff) | |
download | frameworks_base-e7c7993e4d490b67b329ef2502e35c8aad763ca1.zip frameworks_base-e7c7993e4d490b67b329ef2502e35c8aad763ca1.tar.gz frameworks_base-e7c7993e4d490b67b329ef2502e35c8aad763ca1.tar.bz2 |
Merge "docs: Fixed error in code sample." into klp-modular-docs
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/training/location/retrieve-current.jd | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/html/training/location/retrieve-current.jd b/docs/html/training/location/retrieve-current.jd index 99e475f..f079040 100644 --- a/docs/html/training/location/retrieve-current.jd +++ b/docs/html/training/location/retrieve-current.jd @@ -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); |