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? I searched Google but
int apkVersion = GoogleApiAvailability.getInstance().getApkVersion(getContext());
will get the same result as:
int v = getPackageManager().getPackageInfo(GoogleApiAvailability.GOOGLE_PLAY_SERVICES_PACKAGE, 0 ).versionCode;
But the second one needs to be put inside a try-catch.