Android Address Get isVictoriaAddress(Address address)

Here you can find the source of isVictoriaAddress(Address address)

Description

is Victoria Address

Declaration

public static boolean isVictoriaAddress(Address address) 

Method Source Code

//package com.java2s;

import android.location.Address;

public class Main {
    public static boolean isVictoriaAddress(Address address) {
        boolean ret = false;

        if (address != null) {
            String countryCode = address.getCountryCode();
            String adminArea = address.getAdminArea();
            String postalCode = address.getPostalCode();

            if (countryCode != null && adminArea != null
                    && postalCode != null && postalCode.length() != 0) {
                if (countryCode.equals("AU")
                        && adminArea.equals("Victoria")) {
                    ret = true;//from www. j  av  a2  s. c  om
                }
            }
        }

        return ret;
    }
}

Related

  1. getAddress(int contactId)
  2. getLatLongFromAddress(String address)