开发者

How do I get a Google MapView to display more than just a grid?

开发者 https://www.devze.com 2023-03-06 23:48 出处:网络
When I run a simple MapView app, the map shows up as a grid - no image of countries like it should be.

When I run a simple MapView app, the map shows up as a grid - no image of countries like it should be.

I've read through several tutorials saying that I need to include Internet perm开发者_开发技巧issions as a child of my manifest tag in the Android Manifest, which I've placed in the file.

I also need to generate a fingerprint out of my debug.keycode file and register it with Google for a key, which I've done. I've included this key in my XML layout. Still, I only get a grid when I run the app. I've registered my key a couple times and got the same result. Has anyone else had and overcome this issue? I've seen this same question posted under tutorials, but nobody had an answer. Thanks!


here's the official google tutorial to set this up. If you have gotten your key already I suggest you look at the section "Adding the Maps API Key to your Application". In there it tells you what attribute to include in your xml files in order to get the MapView to download the Google maps. Which is:

android:apiKey="example_Maps_ApiKey_String"

Hope this is what you were looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消