Arash Khoeini Arash Khoeini - 3 months ago 84
Android Question

How to check Google Play services version?

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 I could not find anything!

Answer

I found simple solution:

int v = getPackageManager().getPackageInfo("com.google.android.gms", 0 ).versionCode;