Android Maps API v2向后兼容 [英] Android maps API v2 backward compatibility

查看:77
本文介绍了Android Maps API v2向后兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我了解,带有新地图SDK v2的应用程序只能安装在具有Google Play服务APK的设备上.
而且v1密钥在2013年3月3日之后将不可用,这是否意味着我今天无法构建可在大多数android设备上运行的地图应用程序?

As I understand application with new maps SDK v2 can be installed only on devices with Google Play services APK.
And v1 keys will not be available after 3/2013, so does it means I can't build today map application wich runs on most of android devices?

推荐答案

据我了解,带有新地图SDK v2的应用程序只能安装在具有Google Play服务APK的设备上.

As I understand application with new maps SDK v2 can be installed only on devices with Google Play services APK.

该应用程序可以安装在所需的任何设备上. Maps V2将仅在具有Play Services Framework APK的设备上运行.大多数Android 3.0+设备上应该已经存在该文件,并且可以将其下载到许多Android 2.2/2.3设备上.

The app can be installed on whatever devices you want. Maps V2 will only work on devices with the Play Services Framework APK. This should already exist on most Android 3.0+ devices and should be downloadable to many Android 2.2/2.3 devices.

那么这是否意味着我今天无法构建可在大多数android设备上运行的地图应用程序?

so does it means I can't build today map application wich runs on most of android devices?

首先,Maps V1可在大多数Android设备上使用.从2013年3月3日起您将无法获得 new API密钥,这并不意味着您无法使用Maps V1.只需确保您具有一个长期存在的调试密钥库,并具有该密钥库和生产密钥库的Maps V1 API密钥,并且您拥有一个不错的备份方案即可.

First, Maps V1 works on most Android devices. The fact that you cannot get new API keys starting on 3 March 2013 does not mean that you cannot use Maps V1. Simply make sure that you have a long-lived debug keystore, that you have Maps V1 API keys for that keystore and your production keystore, and that you have a decent backup regimen.

第二,尽管与目前没有Play服务框架(但可以从Play商店下载)的设备打交道,Maps V2应该可以在大多数Android设备"上使用.

Second, Maps V2 should work on "most Android devices", though dealing with devices that do not presently have the Play Services Framework (but could download it from the Play Store) is a bit annoying.

第三,还有其他可用的映射解决方案,例如带有OSMDroid的OpenStreetMap,可以在几乎任何东西上运行.

Third, there are other mapping solutions available, such as OpenStreetMap with OSMDroid, that can run on just about anything.

这篇关于Android Maps API v2向后兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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