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

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)