Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 @Override
 public void onConnectionFailed(ConnectionResult connectionResult) {
   OeLog.e("location services connect failed: " + connectionResult);
 }