Is there a way to get country capital from country name in android?
Hi I'm new to android and currently I have an app that gets that displays a google map.When the user touches on a country, I get the country's name like that:
addresses = geocoder.getFromLocation(point.latitude, point.longitude, 1);
selectedCountry = address.getCountryName();
I pass this country name in an intent to a new activity to display the name and capital?But I don't know how to get the capital from the name?
Source: View source