title: Narrowing Geocoder Address to city only
body: <p>I have a geocoder, gcd, and this line of code that reverse-geocodes</p>
  
  <pre><code>List&lt;Address&gt; addresses = gcd.getFromLocation(latitude, longitude, 1);
                      if(addresses != null) {
                          Address returnedAddress = addresses.get(0);
  
                          for(int i=0; i&lt;returnedAddress.getMaxAddressLineIndex(); i++) {
                         strReturnedAddress = (returnedAddress.getAddressLine(i)).toString();
  </code></pre>
  
  <p>strReturnedAddress returns something like</p>
  
  <p>10453 Central Bronx, New York City, NY</p>
  
  <p>I only need the city name, which is New York City.</p>
  
  <p>Removing parts of the string would be extremely hard since the output of the geocode can change. I just need the geocode to give me the city.</p>
  
  <p>I have checked <a href="http://developer.android.com/reference/android/location/Geocoder.html" rel="nofollow">http://developer.android.com/reference/android/location/Geocoder.html</a> but could not find an answer.</p>