Monday, December 17, 2012

[android-developers] Dynamically selecting Map API version

Our application is using the Google Maps API v1 (and also the static map API due to the limitations of MapView), but it is not the main feature of the app. Most of the time we are running in the background and are bothering the user with audio and toasts.

So while I welcome the new Map API v2 overlords I find it a bit curious that Google are trying to pull an Apple and enforce v2 happiness on my users. I would much rather let the users decide by themselves which map version they want. So from what I can understand the v2 documentation so far I have to 

- make OpenGL ES 2 non-mandatory in the manifest to avoid the app being hidden from the devices that don't have it, but are capable of running v1 just fine
- test for presence of the Google Play Services on the device
- give the user the choice between map types (is there a substantial difference between v1 satellite view and v2 satellite view?)
- select the appropriate activity to start, either a MapActivity for v1, or an activity with a MapFragment for v2.

Is there anything else I am missing?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment