Wrox Programmer Forums
|
BOOK: Beginning Android Application Development
This is the forum to discuss the Wrox book Beginning Android Application Development by Wei-Meng Lee; ISBN: 978-1-1180-1711-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android Application Development 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 23rd, 2012, 10:36 AM
Registered User
 
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch2 pp56-59 map example

The app throws a 'force close' when I click on the 'Show map' button.
Logcat has the output:
02-23 14:23:46.730: E/AndroidRuntime(735): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=geo:37.827500,-122.481670 }

There seems to be a problem with parsing 'geo:37.827500,-122.481670'
Is there something missing in manifest.xml? Permissions for map view?
All the other parts of the example are fine.
 
Old February 23rd, 2012, 11:43 AM
Registered User
 
Join Date: Jan 2012
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Answer

I think the solution is that the app has to be run on an AVD that supports the Google APIs in order to display map information. This is stated in a similar example in the author's new book on Android 4.0 but I didn't see it in the relevant pages of chapter 2 in this book, though it is discussed more fully in chapter 9 on location-based services.
 
Old March 20th, 2012, 10:33 AM
Authorized User
 
Join Date: Feb 2011
Posts: 33
Thanks: 5
Thanked 0 Times in 0 Posts
Default

I am on the same Try Out as you.

When I click Show Map, it runs the debugger. I know I have Google API installed on my AVD, I'm using 2.3.3. Any ideas anyone how to get it working?
 
Old March 20th, 2012, 11:31 AM
Authorized User
 
Join Date: Feb 2011
Posts: 33
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Okay have worked it out. Pg 302-303 shows an helpful example with pictures. The author should have shown these in Chp2! : /

T

Last edited by TeaDrinkingGeek; March 20th, 2012 at 11:36 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat Map over Google Map ajit Javascript 0 March 7th, 2008 09:01 AM
Cap2, page 59-62 mollick2 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 1 January 15th, 2007 06:55 PM
Run-time Error 59 Aine Catherine Beginning VB 6 0 March 10th, 2005 09:22 AM
Auto submit after 59 seconds steeve_1001 HTML Code Clinic 2 March 8th, 2005 01:08 PM
chapter 2 ; pp 59 - 62 ritter BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 4 April 28th, 2004 01:30 AM





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