Code example for Locale

Methods: getLanguage

0
 
/** 
 * Split and join {@link StructuredPostal} fields. 
 */ 
public class PostalSplitter { 
    private static final String JAPANESE_LANGUAGE = Locale.JAPANESE.getLanguage().toLowerCase();
 
    private final Locale mLocale;
 
    public static class Postal { 
        public String street;
        public String pobox;
        public String neighborhood;
        public String city;
        public String region;
        public String postcode;
        public String country;
 
        public void fromValues(ContentValues values) {
            street = values.getAsString(StructuredPostal.STREET);
            pobox = values.getAsString(StructuredPostal.POBOX);