thanks for reading my question
i am trying to get current location and current city name .
but the cities in different language has different name .
for example Florence and Firenze are same city . i change geocoder language but result is same and always: firenze . . while i need to receieve Florence as result . i tried :
Locale.ENGLISH and Locale.getDefault()
Geocoder geocoder = new Geocoder(mContext, Locale.ENGLISH); List<Address> addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);
if (addresses != null){
String city = addresses.get(0).getLocality();
String country = addresses.get(0).getCountryName(); Toast.makeText(mContext, ""+city, Toast.LENGTH_SHORT).show();
}