Android:如何检查谷歌播放服务版本的移动视觉API [英] Android : How to check google play service version for mobile vision api

查看:165
本文介绍了Android:如何检查谷歌播放服务版本的移动视觉API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,并使用Mobile Vision Api进行文本识别。我注意到它在某些设备上不起作用。搜索后我明白其中一个原因是因为安装在设备上的google play服务版本。我检查用户设备上安装的谷歌播放服务版本?
这个API可以工作的最低谷歌播放服务版本是什么?
$
b $ b

如果是手动操作,请转至设置>应用程序> Google Play服务。 如果以编程方式,请按照课程

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

此API的最低谷歌播放服务版本是什么? p>

所需的最低Android版本为 Android 2.3 (姜饼)

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?

解决方案

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).

这篇关于Android:如何检查谷歌播放服务版本的移动视觉API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆