The Google Play documentation claims this is an API_NOT_CONNECTED code, however I have done everything I (think I) have to do in order to access the Google Fit API.
Atte
Do you use the latest version of Google Play Services
?
You can check it by invoking the next code:
private void checkForUpdates() {
GoogleApiAvailability availability = GoogleApiAvailability.getInstance();
int resultCode = availability.isGooglePlayServicesAvailable(this);
if (resultCode == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED) {
availability.getErrorDialog(this, resultCode, REQUEST_CODE).show();
}
}