1

I am developing in Android using Gingerbread 2.3.3 (API level 10).

I am concerned about OpenGL support. The current Google Maps Android API v2 requires OpenGL 2.0, and it appears that the original Droids (and other "old" devices) do not natively support OpenGL 2.0. Although hacks exist to add OpenGL 2.0 to the original Droid. Maps are a fundamental mobile function/service, and I don’t like working with deprecated code.

Besides using the Static Maps API v2, how can I support older OpenGL ES 1.0x Android devices with map functionality? What is the best way to support both google map apis (v1 and v2), touches on this but I need to support OpenGL ES 1.0X devices.

Community
  • 1
  • 1
Elpezmuerto
  • 5,391
  • 20
  • 65
  • 79

1 Answers1

0

I'm not sure this solution is possible for you but I've just updated our app having both Maps v1 and v2 integrated into it in parallel.

I was able to hide all our mapping functionality behind an interface and have two implementation - one for V1 and one for V2. I'll instantiate the appropriate class based on wether the user has the new maps or don't.

My activities has to extend MapActivity as before and you have to use a standalone MapView instead of MapFragment (and delegate to it the lifecycle calls).

It is more work but if you want to go for safety it is possible.

balazsbalazs
  • 4,071
  • 1
  • 24
  • 29