Android - google map blank screen -


the google map api v2 shows blank screen use mapdemo project in google play service sample

  • i reinstall google play service sdk.
  • i changed api key
  • i changed debug.keystore , re-generate sha1 fingerprint

nothing changed...

and mmap null ????

if (mmap == null) {  // try obtain map supportmapfragment.  mmap = ((supportmapfragment) getsupportfragmentmanager().findfragmentbyid(r.id.map)) .getmap();  // check if successful in obtaining map.  if (mmap != null) {  setupmap();  } 

this problem (blank map zoom control) derived fact didn't referenced google-play-services library correctly, or haven't configured api in console right way.

you can take @ blog post wrote on how integrate google maps api v2 in application:

google maps api v2

follow first 3 steps correct google-play-services library integration.

or check post right configuration in api console:

google maps api v2 key


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -