Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
This is the forum to discuss the Wrox book Professional Android Application Development by Reto Meier; ISBN: 9780470344712
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 13th, 2009, 04:15 PM
Authorized User
 
Join Date: Nov 2006
Location: , , .
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter7_Sample_WhereAmI_4 not showing map

Hi,

I have tried the "WhereAmI" application (the one using the map controller) several times and the map displayed is white (or maybe a light gray) and empty. The lat, long, and address are displayed correctly at the top of the screen. I have the latest code source. Any ideas why?

Thank you,
Mihai

Last edited by sunrain; February 13th, 2009 at 04:29 PM..
 
Old February 13th, 2009, 05:04 PM
Authorized User
 
Join Date: Nov 2006
Location: , , .
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default

OK, so the problem was with the apiKey for the MapView. I had to sign up for an Android Maps API Key.
The Following User Says Thank You to sunrain For This Useful Post:
Sonja_android (August 26th, 2009)
 
Old August 26th, 2009, 05:40 AM
Registered User
 
Join Date: Aug 2009
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by sunrain View Post
OK, so the problem was with the apiKey for the MapView. I had to sign up for an Android Maps API Key.
Thanks sunrain, your post lead me down the right path to a solution. To expand on sunrain's post, here's how you can get a debugging API key:

http://code.google.com/android/add-o...is/mapkey.html describes how to obtain a Maps API key. I used the SDK Debug certificate to generate a debug key. First find the debug.keystore file (probably in c:\Documents and Settings\<user>\.android of something similar depending on your OS). Run the keytool command (found in your java directory e.g. c:\Program Files\Java\jre6\bin).

keytool -list -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android

This will print out a MD5 fingerprint that you input into http://code.google.com/android/maps-api-signup.html. Click the "Generate API key" button. That key is what you enter for your MapView's android:apiKey in your XML layout files.

-Sonja




Similar Threads
Thread Thread Starter Forum Replies Last Post
how to map a url to another? worldcrafter Apache Tomcat 0 April 2nd, 2008 06:19 PM
Heat Map over Google Map ajit Javascript 0 March 7th, 2008 09:01 AM
Site Map mallikalapati ASP.NET 2.0 Basics 1 February 9th, 2008 02:56 PM
Map Path??? thetwai C# 3 April 5th, 2007 07:26 AM
Map Coordinates dragondayz VB How-To 2 May 8th, 2006 10:52 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.