I\'ve attempted two different ways in trying to obtain the city name as well as the state abbreviation only from the Address class, with no luck. The first is returning the
This works for me on US addresses:
String[] spState = addressInformation.get(0).getAddressLine(1).split(" "); String state = spState[1];