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 onConnected(Bundle bundle) { OeLog.d("LocationHelper.onConnected"); startUpdates(); if (_connCallback != null) _connCallback.onConnected(); }
@Override public void onConnectionFailed(ConnectionResult connectionResult) { OeLog.e("location services connect failed: " + connectionResult); }
@Override public void onDisconnected() { OeLog.d("location services disconnected"); }