I am trying to animate map to user defined City...
I am not sure if this is the way... Here is my code :
String req_uri = "http://maps.google.com/maps/geo?output=json&oe=utf-8&q=<CityName>&key=<Map_API_Key>";
req_uri = req_uri.replace(" ", "%20");
HttpClient httpClient = new DefaultHttpClient();
try
{
HttpGet method = new HttpGet(new URI(req_uri));
HttpResponse response = httpClient.execute(method);
if (response != null)
{
result = response.getEntity().toString();
}
}
catch (Exception e)
{
Log.d("HTTP Error", e.toString());
}
By doing so, I get exception at HttpResponse response = httpClient.execute(method);...
The Exception is :
java.net.UnknownHostException: Host is unresolved: maps.google.com:80
Helps are appreciated......


