Minimal Android API level to run Google Maps Android API v2

こ雲淡風輕ζ 提交于 2019-11-27 07:38:15

问题


I have developed a mobile application that uses Google Maps Android API v1, and I plan to port it to the recent Google Maps Android API v2, as recommended by Google.

However, my application also targets Android 2.1 devices, and I cannot figure out whether the v2 Maps will run on such devices. I have found some reference suggesting that v2 should work with API level 8 and 10 (here, here and here), provided that OpenGL ES 2.0 is supported by the mobile device, but nothing about API level 7.

My question is therefore: What is the minimum Android API level to run Google Maps Android API v2?

TIA!


回答1:


The Maps API are bundled with Google Play services and are compatible with Android 2.2 and higher. All devices with Android 8 API level support OpenGL 2.0, so devices with Android 2.1 version can't support Google Maps v2. You can check in the Google Documentation.




回答2:


It'a API Level 8 (Froyo), because of the Play Services dependency.

Also take care that if you are using API levels 8 - 10 you need to use SupportMapFragment with the Android Support Library: http://developer.android.com/tools/extras/support-library.html , because fragments were only added in API level 11.




回答3:


i guess you are trying in Android Emulator,

or,

you are trying with Tablet with don't have GPS Feature, Try with GPS enabled device, it should work properly




回答4:


As beni said, it works with Android 2.2 and higher version. But you need the android support library for 2.x versions seeing that it use fragments...



来源:https://stackoverflow.com/questions/15024040/minimal-android-api-level-to-run-google-maps-android-api-v2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!