0

I am developing an application and using Mobile Vision Api for text recognizing.I noticed that its not working in some devices.After searched I understand that one reason is because of google play service version that is installed on device.So how can I check the google play service version that is installed on user device? And what is the minimum google play service version that this api could work?

2
  • Did my answer provide what you're looking for in this question? Apr 5, 2017 at 9:14
  • OP asked for a way to check the PlayServices version on a user's device.Your answer should leave out the manual check. Also, the "minimum Android version" is not what he's looking for. It's the "minimum PlayServices version"
    – wsgeorge
    Oct 24, 2017 at 10:12

2 Answers 2

0

You can use this for checking version

GoogleApiAvailability.GOOGLE_PLAY_SERVICES_VERSION_CODE

I think, first you should check, if service is available ?

public int isGooglePlayServicesAvailable (Context context)

Google Doc

0

How to know GPS version of your phone?

If manually, go to Settings > Applications > Google Play Services.

If programatically, follow the answer in this SO thread:

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

What is the minimum google play service version for this API?

Minimum Android version required is Android 2.3 (Gingerbread).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.