How to show map in Android mapactivity?

I attached mapview to my layout and show the compass and my current location. The problem is that there is no street map in the view, so basically I just see the compass and my current location on top of an empty grid.

+4
source share
4 answers

When you start or debug through Eclipse, your application will be signed with your debug key, which will be automatically created. This is not the same as the key with which you sign the application when it is released.

You need to get the API key using the debug key.

See the โ€œObtaining the MD5 Fingerprint Certificate Debug SDKโ€ section at http://code.google.com/android/add-ons/google-apis/mapkey.html

Once you are ready to release your application, you will replace the debug API key with the API key you are using.

+6
source

Make sure you have the INTERNET permission and the corresponding API key. Any of these will give you a clean mesh effect.

http://code.google.com/android/add-ons/google-apis/mapkey.html

+2
source

It turned out that the map is displayed only when the application is signed and downloaded using adb install {path to app}, the same application does not work when starting or debugging using Eclipse.

+1
source

Check the following: 1. turn on the card bank. 2. Generate your certificate and register it. Now it should work :)

+1
source

All Articles