Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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..
Reply With Quote
  #2 (permalink)  
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.
Reply With Quote
The Following User Says Thank You to sunrain For This Useful Post:
Sonja_android (August 26th, 2009)
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.