如何显示在Android mapactivity地图吗? [英] How to show a map in an Android mapactivity?

查看:111
本文介绍了如何显示在Android mapactivity地图吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我附上一个图形页面到我的布局,有它显示一个指南针和我现在的位置。我的问题是,有在视图中显示没有街道地图,所以基本上我只看到指南针和我现在的位置在一个空的网格。

I have attached a mapview to my layout and have a it showing a compass and my current location. The problem I have is, that there is no street map shown in the view, so basically I just see the compass and my current location over a blank grid.

推荐答案

在运行或调试通过Eclipse中你的应用程序与将被自动创建调试密钥签名。这是不一样的,你签释放它,当你的应用程序中的关键。

When you run or debug through Eclipse your app is signed with your debug key which will have been automatically created. It is not the same as the key you sign your app with when releasing it.

您需要使用您的调试键获得一个API密钥。

You need to get an API key using your debug key.

见获取SDK调试证书的MD5指纹一节<一href="http://$c$c.google.com/android/add-ons/google-apis/mapkey.html">http://$c$c.google.com/android/add-ons/google-apis/mapkey.html

See the 'Getting the MD5 Fingerprint of the SDK Debug Certificate' section on http://code.google.com/android/add-ons/google-apis/mapkey.html

一旦你准备好释放你的应用程序,您更换调试API密钥与当前正在使用的API密钥。

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

这篇关于如何显示在Android mapactivity地图吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆