Hi,
I am reading the example "Where Am I?" and I copied/pasted most of the code into my own app. When I ran it on the emulator, it worked perfectly while I got
java.io.IOException: Unable to parse response from server
when running it on my Nexus One phone.
The only difference between the example on the book and mine is I am using a second activity as a Dialog on top of the Map view. When the user clicks a button on the map view, the dialog pops up and the reverse geocode starts running. I tried to do the reverse geocode both in the main UI and as an AsyncTask but the results are the same: no error on emulator and always got IOExceptions on the device.
My next attempt would be to use a Service to do the reverse geocode to see if it goes through. Any lead would be appreciated!
Some updates:
I just ran the example from the book (Chapter 8 Where Am I 5) on both the emulator and my phone:
1. Emulator: Throws out NullPointerException/ViewRoot.draw(boolean) line 1374
2. Nexus One: Runs ok but gets the same IOException error as from my own app.
Thanks!
smallbug