How to use Geocoder to get the current location zip code
<p>I am trying to get the zip code of the users current location.I have a teditText in MyActivity which should get populated based on the zip code I get from this activity.</p>

<pre><code>public class LocationActivity extends MyActivity {
    double LATITUDE;
    double LONGITUDE;

    Geocoder geocoder = new Geocoder(this, Locale.ENGLISH); 
    {
        try {
            List&lt;Address&gt; addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 1);

            if(addresses != null) {
                Address returnedZip = addresses.get(0);
                StringBuilder currentZip = new StringBuilder("Address:\n");
                for(int i=0; i&lt;returnedZip.getMaxAddressLineIndex(); i++) {
                    strcurrentZip.append(returnedZip.getPostalCode());
                }
                m_zip.setText(strcurrentZip.toString());
            }
            else {
                m_zip.setText("No zip returned!");
            }
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            m_zip.setText("zip not found!");
        }
    }
}
</code></pre>

<p>I am not getting any response,the app logcat does not show any errors but the the editText field I want to populate remains blank.</p>
