I assume that you have downloaded, run and studie the example GeocoderExample.
The documentation on the Geocoding methods says "It may be useful to call this method from a thread separate from your primary UI thread".
You must refactor my example to follow this advice. Hint: Use AsyncTask.