Search code examples
androidgoogle-mapsandroid-maps-v2

Android - google map is showing blank screen


The Google map API V2 shows blank screen even I use the mapdemo project in Google play service sample

  • I reinstall google play service SDK.
  • I changed the API key
  • I changed the debug.keystore and re-generate the sha1 fingerprint

nothing changed...

and mMap is always turning out to be null ?

if (mMap == null) { 
// Try to obtain the map from the SupportMapFragment. 
mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)) .getMap(); 
// Check if we were successful in obtaining the map. 
if (mMap != null) { 
setUpMap(); 
}

Solution

  • Actually I find that the device operating system just can handle map view not the map fragment.