Home | History | Annotate | Download | only in location

Lines Matching refs:Country

21 import android.location.Country;
37 * This class detects which country the user currently is in through the enabled
42 * the user country through the GeoCoder. The IllegalStateException will be
59 * The thread to query the country from the GeoCoder.
73 * @return the ISO 3166-1 two letters country code from the location
76 String country = null;
82 country = addresses.get(0).getCountryCode();
85 Slog.w(TAG, "Exception occurs when getting country from location");
87 return country;
158 * Start detecting the country.
161 * country from GeoCoder.
164 public synchronized Country detectCountry() {
235 * Start a new thread to query the country from Geocoder.
251 mDetectedCountry = new Country(countryIso, Country.COUNTRY_SOURCE_LOCATION);