public String getLocationName(double lattitude, double longitude) { String cityName = "Not Found"; Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault()); try { List<Address> addresses = gcd.getFromLocation(lattitude, longitude, 10); for (Address adrs : addresses) { if (adrs != null) { String city = adrs.getLocality(); if (city != null && !city.equals("")) { cityName = city; System.out.println("city :: " + cityName); } else { } // // you should also try with addresses.get(0).toSring(); } } } catch (IOException e) { e.printStackTrace(); } return cityName; }