title: why the city of my current location is null in android studio?
body: <p>hi I made a simple app that gets current location with gps and shows the current city but when I run it, it shows latitude and longitude correctly but returns city  as null</p>
  
  <pre><code>Location mLastLocation = locationResult.getLastLocation();
  lat = mLastLocation.getLatitude() + "";
  lon = mLastLocation.getLongitude() + "";
  Geocoder gcd = new Geocoder(MLocationListener.this, Locale.getDefault());
  
  List&lt;Address&gt; addresses;
  try {
      addresses = gcd.getFromLocation(mLastLocation.getLatitude(), mLastLocation.getLongitude(), 1);
      if (addresses.size() &gt; 0) {
          // Log.d("city", addresses.get(0).getLocality());
          String cityName = addresses.get(0).getLocality();
          //Toast.makeText(MLocationListener.this, cityName, Toast.LENGTH_SHORT).show();
      }
  } catch (IOException e) {
      e.printStackTrace();
  }
  </code></pre>