Is there a way to get country capital from country name in android?

PressRex profile image
by PressRex
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

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More