in my following code, getMap() returns null, which stop the app. If I don\'t do anything with the map (i.e, removing the last two lines), it shows correctly. Any idea why? T
Duplicate of: SupportMapFragment.getmap() returns null
Check your layout xml file. I noticed that I wasn't referencing: android:name="com.google.android.gms.maps.SupportMapFragment" but rather: android:name="com.google.android.gms.maps.MapFragment"
The name should be: android:name="com.google.android.gms.maps.SupportMapFragment"