3 ms·
On phones, http://developer.android.com/reference/android/telephony/TelephonyManager.html#getSimCountryIso() http://developer.android.com/reference/android/tele
by lern_too_spel 11y ago
On phones, http://developer.android.com/reference/android/telephony/TelephonyManager.html#getSimCountryIso() http://developer.android.com/reference/android/telephony/Tel... is probably a better estimate of the user's home country and getNetworkCountryIso() is a good estimate of the user's current country. The fact that my Android phone doesn't have en_CA as a locale option (maybe because they're too cheap to localize the system apps for Canadians, who mix British and American spellings) means that anybody who tries to get the country from the locale region code won't recognize Canadians with this phone.
- cheriot 11y agoThanks, assuming that doesn't require an extra permission, I'm going to use it this week!