How to get current location in different language.Do we need to add some libraries?I need to find the current address in arabic language? I think there is google maps in arabic format.Similarily is there any way to get current address in arabic lamguage??
public static final String GOOGLE_GEOCODER = "http://maps.googleapis.com/maps/api/geocode/json?latlng=";
public static String getAddressFromGPSData(double lat, double longi) {
HttpRetriever agent = new HttpRetriever();
String request = GOOGLE_GEOCODER + lat + ","
+ longi + "&sensor=true";
// Log.d("GeoCoder", request);
String response = agent.retrieve(request);
String formattedAddress = "";
if (response != null) {
Log.d("GeoCoder", response);
try {
JSONObject parentObject = new JSONObject(response);
JSONArray arrayOfAddressResults = parentObject
.getJSONArray("results");
JSONObject addressItem = arrayOfAddressResults.getJSONObject(0);
formattedAddress = addressItem.getString("formatted_address");
} catch (JSONException e) {
e.printStackTrace();
}
}
// Log.d("GeoCoder", response);
return formattedAddress;
}