I use this code, it does everything right, displays the name of the city. But I need the same names only in Latin letters. How can I do that ?

Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault()); try { List<Address> addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1); Address obj = addresses.get(0); return obj.getAddressLine(1); } catch (IOException e) { e.printStackTrace(); return null; } 

1 answer 1

Select another Locale , for example Locale.ENGLISH . Russian is now selected on the device.