A simple app demostrates to load country/state/city names
Add jitpack to project level build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add CCSApi dependency to app module build.gradle
dependencies {
implementation 'com.github.piyushjohnson:CCS:724f99e466'
}
CCSApi api = new CCSApi(this);
ccsApi.getCountries().getResult(new CCSApi.Callback() {
@Override
public void onResult(List<String> values) {
}
});
String selectedCountry = "India";
ccsApi.getStates(selectedCountry).getResult(new CCSApi.Callback() {
@Override
public void onResult(List<String> values) {
}
});
String selectedState = "Rajasthan";
ccsApi.getCities(selectedState).getResult(new CCSApi.Callback() {
@Override
public void onResult(List<String> values) {
}
});