title: Google Api Availability issue
body: <p>I'm trying to use Google Maps API in my android project.
  When I call the following function</p>
  
  <pre><code>public boolean checkGoogleServices(){
          Log.d(TAG, "isServicesOk: checking google services version");
          int available = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(Home.this);
  
          if (available == ConnectionResult.SUCCESS){
  
  
              Log.d(TAG, "isServicesOk: Google Play Services is working");
              Toast.makeText(this, "OK", Toast.LENGTH_LONG).show();
              return true;
  
          }
          else if(GoogleApiAvailability.getInstance().isUserResolvableError(available)){
  
              Log.d(TAG, "isServicesOk: an error occured but we can fix it");
              Dialog dialog = GoogleApiAvailability.getInstance().getErrorDialog(Home.this, available, ERROR_DIALOG_REQUEST);
              dialog.show();
  
  
          }else{
              Toast.makeText(this, "You can't make maps request", Toast.LENGTH_LONG).show();
  
  
          }
          return false;
  
      }
  </code></pre>
  
  <p>the result of <code>if (available == ConnectionResult.SUCCESS)</code>is <code>true</code> in fact the program writes on console the log "google play services is working" but right after that it goes out the if and return <code>false</code>.</p>
  
  <p>Google Play Services are correctly installed in my SDK. </p>