title: 'isGooglePlayServicesAvailable'(this) is deprecated
body: <p>I'm following a tutuorial to use google location services. So, I'm trying to get location using Google API service. But I got <code>isGooglePlayServicesAvailable</code>(this) is deprecated error. Can anyone help. Thanks</p>
  
  <p>Below is my code for checking if Play services exist on device:</p>
  
  <pre><code>private boolean checkPlayServices(){
      int resultCode = GooglePlayServicesUtil
              .isGooglePlayServicesAvailable(this);
      if(resultCode != ConnectionResult.SUCCESS){
          if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)){
              GooglePlayServicesUtil.getErrorDialog(resultCode, this,
                      PLAY_SERVICES_RESOLUTION_REQUEST).show();
          }else {
              Toast.makeText(getApplicationContext(),
                      "This device is not supported", Toast.LENGTH_LONG)
                      .show();
              finish();
          }
          return false;
      }
      return true;
  }
  </code></pre>