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.
@Override
public void run() {
Geocoder geo = new Geocoder(this) ;
List<Address> enderecos = null ;
try {
enderecos = geo.getFromLocation(latitude.intValue(), longitude.intValue(), 1) ;
} catch (IOException e) {
e.printStackTrace();
}
myLocationText = (TextView) findViewById(R.id.myLocationText) ;
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.


