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,868
  • 5
  • 28
  • 42
JanBo
  • 2,925
  • 3
  • 23
  • 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
  • 986,068
  • 189
  • 2,389
  • 2,491
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,812
  • 8
  • 82
  • 177