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