0

I am using Android Google maps V2 in my application.

If the user doesn't have Internet connection, I send them to an alternative activity without maps.

The problem is that my app is not supported on devices that don't have openGL2, because of manifest:

 <uses-feature android:glEsVersion="0x00020000" android:required="true"/>

If i put required element to false, the maps don't show.

Is there a way to program this somehow during run-time? Or any other alternatives?

joao2fast4u
  • 6,754
  • 5
  • 26
  • 41
JanBo
  • 2,920
  • 3
  • 20
  • 32

2 Answers2

1

Is there a way to program this somehow during run-time? Or any other alternatives?

Alas, no. There is a bug in Maps V2 that requires this element to function.

In an upcoming update, this is supposed to be fixed. At that time, you could set android:required="false". Hopefully, you could then detect if the device has OpenGL ES 2.0 at runtime and make your choice accordingly.

Community
  • 1
  • 1
CommonsWare
  • 954,112
  • 185
  • 2,315
  • 2,367
0

Google Maps Android API v2 requires an explicit <uses-feature android:glEsVersion="0x00020000" android:required="true/> declaration in AndroidManifest.xml so there is no way to deploy Google Maps Android API v2 services without OpenGL ES.

But, you have to try this post.

Dhaval Parmar
  • 18,632
  • 8
  • 83
  • 173