English 中文(简体)
似乎无法下载地图应用程序的瓦片。
原标题:Can t seem to download the tiles for my map application

这是我的第一个问题,我玩安卓才几天。

当我尝试按照一个示例代码来尝试 MapView 类进行实验时,出现了问题。 (http://developer.android.com/resources/tutorials/views/hello-mapview.html)

我在我的SDK中安装了Google APIs插件,并按照教程所述做了一切。AVD完美地运行了代码,但是我看到的是一个空的网格,而不是我本以为应该看到的实际地图。

看起来我的调试密钥有问题,但是在这里,我做的一切都按照教程所述。实际上,在我的main.xml中指定了api密钥的行如下:

    android:apiKey="48:C6:36:64:4A:DA:92:EF:D7:9E:BA:CD:26:45:EB:0D"

我用keytool命令就像这样得到了这个密钥:

    $ keytool -list -alias androiddebugkey -keystore /home/nelson/.android/debug.keystore -storepass android -keypass android

我尝试了安装Google API时自带的AVD地图应用程序,它完美地工作,所以我的应用程序肯定有问题,但我不知道是什么问题。能帮帮我吗?

提前致谢。

尼尔森·R·佩雷斯

最佳回答

android:apiKey=“48:C6:36:64:4A:DA:92:EF:D7:9E:BA:CD:26:45:EB:0D”

那不是你的API密钥。那是你签名密钥的指纹。

这里开始,按照Maps API密钥说明操作,你就没问题了。

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签