p2p.wrox.com 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 13th, 2009, 04:15 PM
Authorized User
Points: 119, Level: 2
Points: 119, Level: 2 Points: 119, Level: 2 Points: 119, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old February 13th, 2009, 05:04 PM
Authorized User
Points: 119, Level: 2
Points: 119, Level: 2 Points: 119, Level: 2 Points: 119, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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, 06:40 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to map a url to another? worldcrafter Apache Tomcat 0 April 2nd, 2008 07: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 08:26 AM
Map Coordinates dragondayz VB How-To 2 May 8th, 2006 11:52 AM



All times are GMT -4. The time now is 04:54 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc