Monday, December 17, 2012

Re: [android-developers] Dynamically selecting Map API version

On Mon, Dec 17, 2012 at 7:45 AM, lbendlin <lutz@bendlin.us> wrote:
> 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?

Depending upon your distribution mechanism, there's always the "none
of the above" choice (e.g., Kindle Fire), where neither V1 nor V2 are
available. Otherwise, I suspect that you're set, though I'm hoping to
run my own experiments in this area later on today.

With respect to satellite view, V2 has the two-finger swipe for
changing your perspective from top-down to on an angle.

And if you're planning on using V1 past March 3rd, bear in mind that
you will no longer be able to get API keys for V1 at that time, so
plan accordingly:

http://commonsware.com/blog/2012/12/17/maps-v1-keys-going-going.html

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Aqui estão alguns sites onde você pode perguntar ou responder dúvidas
sobre desenvolvimento de aplicações para Android:
http://www.andglobe.com

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