Development Note/Android

[Android Java] 국가코드 및 국가명 가져오기

JamesChun 2020. 8. 13. 19:17

iOS 와 동일하게 출력됩니다.

public static String getCountry() {
        return Locale.getDefault().getCountry();
}
public static String getDisplayCountry() {
        return Locale.getDefault().getDisplayCountry(Locale.US);
}

 

2020/08/13 - [Development Note/iOS] - [objective-c] 국가코드 및 국가명 가져오기

저작자표시 (새창열림)