【发布时间】:2016-09-13 11:01:08
【问题描述】:
刚刚知道谷歌新的上下文感知,俗称谷歌感知API,使用谷歌感知API的最低版本应该是什么?
使用时有什么限制或注意事项吗?
【问题讨论】:
标签: android api android-version google-awareness
刚刚知道谷歌新的上下文感知,俗称谷歌感知API,使用谷歌感知API的最低版本应该是什么?
使用时有什么限制或注意事项吗?
【问题讨论】:
标签: android api android-version google-awareness
您可以在此处找到 Google 的一些最佳做法和建议: https://developers.google.com/awareness/best-practices
如果您只需要 Awareness API,请仅导入:
compile 'com.google.android.gms:play-services-contextmanager:9.4.0'
完整的play-services导入不是必须的,它太重了。
Google 的示例应用使用 minSDK 14。
https://github.com/googlesamples/android-play-awareness
如果它也适用于较低的 API 级别,您可以轻松试用。
我认为“唯一”的限制是“播放服务”。 因此,如果您的目标设备没有播放服务(例如很多中国产品),您的应用将无法运行。
【讨论】: