Question: In my application, I need to check Google Play services version (which is installed in user's device). Is it possible ? And if yes, how can I do that?

Answer: 
Here is my solution:

```
private boolean checkGooglePlayServices() {
        final int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
        if (status != ConnectionResult.SUCCESS) {
            Log.e(TAG, GooglePlayServicesUtil.getErrorString(status));

            // ask user to update google play services.
            Dialog dialog = GooglePlayServicesUtil.getErrorDialog(status, this, 1);
            dialog.show();
            return false;
        } else {
            Log.i(TAG, GooglePlayServicesUtil.getErrorString(status));
            // google play services is updated. 
            //your code goes here...
            return true;
        }
    }

```

and you have two options, either write your code directly in else block as commented, or use the returned boolean value for this method to write custom code.
**IMPORTANT**: GoogleApiAvailability.GOOGLE\_PLAY\_SERVICES\_VERSION\_CODE returns the minimum version required by YOUR app, not the play services version that is installed on the user's device.