private boolean servicesConnected() { // Check that Google Play services is available int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(_context.getContext()); if (ConnectionResult.SUCCESS == resultCode) { Log.d("Location Updates", "Google Play services is available."); return true; // Google Play services was not available for some reason } else { OeLog.e("location services connect error: " + resultCode); // tddo: send error via intent } return false; }
@Override public void onConnectionFailed(ConnectionResult connectionResult) { OeLog.e("location services connect failed: " + connectionResult); }