GeoCoder problems

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

GeoCoder problems

Postby tamadrum » Wed Apr 07, 2010 10:29 pm

Hi there! I'm new at the forum and I need some help aboute the geocoder. I've made the simpleGoogleMaps example here in the site and it works, but my code doesn't. It's running in a thread but throws nullPointerException for the Geocoder.

public void run() {
Geocoder geo = new Geocoder(this) ;
List<Address> enderecos = null ;
try {
enderecos = geo.getFromLocation(latitude.intValue(), longitude.intValue(), 1) ;
} catch (IOException e) {
myLocationText = (TextView) findViewById( ;
myLocationText.setText(enderecos.get(0).getLocality()) ;

I've even tryied to sleep after the new Geocoder...

Im my code I will show where am I and show a list of overlay's bocked in my app.

Congratulations for the forum. Very good posts. Thanks.
Knoledge is power
Posts: 2
Joined: Wed Apr 07, 2010 10:19 pm
Location: Brazil, São Paulo


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 3 guests