google-maps-android-api-2
Google maps v2: Authorization failure
Activate the Google Maps Android API v2 service in the Google API’s console. Also, after making changes do a full reinstall of the app on the device/emulator.
Android Google Maps fragment in the xml. I get “Unexpected namespace prefix”
I had this problem as well. I did Project/Clean and the error went away and it works fine now.
Google Maps V2 – Error inflating class Fragment
I know this is probably a dead thread but just in case someone stumbles upon here having an identical problem – your manifest might be missing the following meta information: <meta-data android:name=”com.google.android.gms.version” android:value=”@integer/google_play_services_version” /> Declare it within the <application> element and your code should work. I ran into the same issue following a youtube tutorial … Read more
How to disable the map rotation feature in the Android Map Fragment
It turned out to be straight forward if you look into the right place in documentation. There is a UiSettings class inside a GoogleMap that allows enabling and disabling of gestures. SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.maps_fragment); GoogleMap map = mapFragment.getMap(); map.getUiSettings().setRotateGesturesEnabled(false);
Android Maps API requires openGL es 2
Final Update As of 2013/12/20, the Android Dashboard shows that approximately 100% of devices now support OpenGL 2.0+ so this answer is no longer relevant. You may simply require OpenGL ES 2.0+ in your manifest. Update This is fixed as of rev 7 of the Google Play Services SDK add-on. It is safe to use … Read more
GooglePlayServicesUtil.getErrorDialog is null
Google suggests (also in docs) calling getErrorDialog() if the result code is SERVICE_MISSING, SERVICE_VERSION_UPDATE_REQUIRED or SERVICE_DISABLED. So it may be that the last possible status code (SERVICE_INVALID) is what’s causing trouble. I’m using the following code and so far it seems to work ok (testing in emulator, platform 2.3.3): int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(activity.getApplicationContext()); if (resultCode … Read more